|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
I'm trying to write an application/driver in C++ or java that will be able to take in input from a game controller plugged into the USB port on my PC.
Does anyone know how i can do this? I have no idea even where to begin with something like this. If anyone has any sample code or can give me any suggestions, it would be greatly appreciated. Thanks |
|
#2
|
|||
|
|||
|
I assume you are using Windows.
USB game controllers (and all other joystick-like devices) can be controlled with a few WinAPI functions in polling and event-driven modes. here is the corresponding chapter in the platform sdk: http://msdn.microsoft.com/library/d...ed/joy_42er.asp
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Getting input from a game controller |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|