pmprog
DNF (Did Not Finish)
- Joined
- Apr 25, 2011
- Messages
- 4,150
One of the tricks I did in one of my games was allow you to remap all the keys, and I created "virtual keycodes" for joysticks. Then when I added support for joysticks, I polled them seperately, and created key up/down events for the movement and button presses. Meant you can use all the same code for everything (including the button configuration screen), but handle multiple input methods
Also, depending on what gets connected, it might be a HID device like a keyboard, which sends letters anyway
Also, depending on what gets connected, it might be a HID device like a keyboard, which sends letters anyway
Last edited by a moderator: