Skip to main content
GameDev.net gamedev.net
🔒 Locked

Gamepad support

Started by paulbird Jun 10, 2006 at 2:53 PM 2 replies 1k views
Original Post
paulbird
paulbird
Hello. I have just bought a nice new Logitech Gamepad for my PC which so far I have tried on Sega Sonic Adventure DX. Does anyone know how where to find some information about getting input from a gamepad device in a C++ Win32 type game? I am using OpenGL at the moment not DirectX mainly because it seems a lot easier to use. I want to support gamepads in my future games and game engine since I think this will make them more fun to play and give them an extra edge.
Nohup
Nohup
Even though you're using OpenGL to render your program's graphics, you can still use DirectInput to read joystick/mice/keyboard input.

DirectInput can be used without any other part of DirectX.

Of course, DirectInput has been depreciated by microsoft, in favor of RawInput, but I know nothing about it yet.



paulbird
paulbird
Thanks, I've just seen the "joySetCapture" functions from Win32 which seem to be just the job (if they work). I missed them before because I was searching for "gamepad" instead of "joystick".

Now I just need to find out how to implement the extra buttons that my gamepad has the Win32 doesn't seem to support...



[Edited by - paulbird on June 10, 2006 6:15:15 PM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.