Reply To: USB Button Help

Home Forums AR Sandbox Forum USB Button Help Reply To: USB Button Help

Oliver Kreylos

Depends on the type of button. Some are set up to emulate keyboards, in which case you should see characters pop up when you press the button while you have a terminal or text editor open.

Other buttons advertise themselves as HID controllers (which is actually the better way), in which case you’ll have to tell the sandbox software about them explicitly.

Do an

$ ls /dev/input

before and after you plug in your button, and see if a new event device node appeared. If so, you have the second type of button. You can listen to incoming events via

$ sudo cat /dev/input/event<X>

where event<X> is the new event node. When you press the button, you will see some garbage-looking output, which are actually HID event reports in binary.

Comments are closed.