In this example we want to show how to use the keys of a third-party USB input device (in this case a remote control) to control certain functions on a room or desk device.
We show how to use the keys of a Bluetooth remote control (with a USB dongle) to control the standby function, increase and decrease the volume, and control the camera of a room or desk device. We create a macro that listens for relevant events, and carries out the associated actions using the API of the room or desk device.
The Third-Party USB Input Device feature is described in this article .
In the following example, you must enter the text that is written in normal font. The text in italics is the response that is received from the room or desk device.
1 | Sign in to the room or desk device on SSH. You need a local admin user. | ||
2 | Configure the device to allow the use of a third-party USB remote control.
| ||
3 | Register for feedback, so that we are notified when the remote control buttons are pressed and released.
| ||
4 | Press and release a button on the remote control to check that feedback registration works. This action generates two events: Pressed and Released. If you press and hold a button, you see the Pressed event until you release the button. Then the Released event is generated. These events are issued when pressing and releasing the Enter key:
| ||
5 | Write a macro that listens for the relevant InputDevice events, and carries out the associated actions using the API of the device.
|