Page 1 of 1
USB-footswitch
Posted: Thu Mar 27, 2008 11:32 am
by Susan20
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
Posted: Thu Mar 27, 2008 1:05 pm
by Num3
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

...
Posted: Thu Mar 27, 2008 2:28 pm
by Susan20
Thanks for the quick answer. The code does work with my 8-button-gamepad, but unfortunately not with my footpedal.
Posted: Thu Mar 27, 2008 3:04 pm
by dhouston
Many footswitches emulate a mouse. What make/model footswitch?
Posted: Thu Mar 27, 2008 3:43 pm
by Susan20
In deed there are foot switches which emulate a certain joystick button or a mouse wheel. However, for those you need a certain configuration software. In my case though the PB-Standard-Devices like mouse and joystick won't work due to a missing configuration software.