USB-footswitch
USB-footswitch
Hi, it is not too difficult to implement a 8-button-gamepad under PB. I'm so impressed by the power of PB, that I want more! The other day I connected a simple usb-footswitch to my computer being immediately recognized by Windows (must be kind of a standard device). Is it possible under PB 4.10 to detect actions like hitting the footpedal? In other words: Is there a simple way to use this pedal as a device similar to a joystick/gamepad? - Susan
-
- PureBasic Expert
- Posts: 2812
- Joined: Fri Apr 25, 2003 4:51 pm
- Location: Portugal, Lisbon
- Contact:
Yes it can!
Purebasic only supports the "basic" buttons, but you can use the code from >>here<<.
I've tested it with my game pad... 16 buttons and works fine !
I assume that a footpedal is nothing more that a standard joystick, that uses some of those 16 buttons
...
Purebasic only supports the "basic" buttons, but you can use the code from >>here<<.
I've tested it with my game pad... 16 buttons and works fine !
I assume that a footpedal is nothing more that a standard joystick, that uses some of those 16 buttons
