2
\$\begingroup\$

enter image description here

I want to make a web application that can allow a user to change, play and pause music with foot switch paddle. I can easily do this with a mouse or keyboard but I don't know how to take input from foot switch paddle in a website. Please help me.

\$\endgroup\$
0
\$\begingroup\$

Set up the foot switch as a USB HID keyboard device. Then you don't have to change anything compared to the keyboard you already know how to interact with.

There would be no difference in electronics between what you want, and a keyboard. The foot switch is just physically different shape than a keyboard key.

\$\endgroup\$
  • \$\begingroup\$ tear apart an old USB keyboard and use the footswitch as one of the keys \$\endgroup\$ – jsotola Jun 27 at 5:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.