一个游戏设备的Win32库,游戏杆,摇杆,手柄操作
文件列表:
This is a dll for getting state of the joystick. Simply Initialize the joystick, and Get the state. Works done,perfect!! One day, when i was writting a control program with a joystick, i found there is no simple way to control the joystick,the directx architecture is too complicate to understand for beginners. And also, there is many repeated works in writting this kind of codes. The last problem is that when we write a directinput program, we should input large amount of codes. So i wrote this dll, only have 3 functions, do all of the works. Step by step, i take a visual studio 6.0 project for an example: step1: Download the four packages. step2: Integrade the library in your project, include the header file and announce the library name as follows: header file (the comments hear are writen in chinese, i will change it into english some day):
joystickLibrary
joystickLibrary_SRC
TestProjects
VisualC++2008 redistribution
History
Introduction
Background
Using the code
step3: Edit your code, initialize the library in your program initialize zone or any position you need to initialize it:
step4: Edit your code, in OnTimer() function, update the joystick
state every time. And now we can get the current joystick state, and
put it in a structure JOYSTICKSTATE.
if you still have some questions on using the library ,please review at
the tests program or you can contact me, email cbeast@gmail.com at your
service!
SRC
this is the first release version----20080929.
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
