Chapter 9. Input Devices
This chapter explains how to receive events from input devices. On the Armadillo-440 LCD Model, the touch screen
and buttons are supported as input devices. For the specifications of the touch screen and button drivers, refer to the
"Touch Screen" and "Buttons" chapters in the "Armadillo-400 Series Software Manual."
9.1. evtest
[armadillo ~]# evtest /dev/input/eventX
Figure 9.1. evtest Command Format
Table 9.1. Input Device Files
Device File
Device
/dev/input/event0
Buttons
/dev/input/event1
Touch Screen
The event device file numbers are determined by the order the input devices are
detected. Therefore, if another input device such as a USB keyboard is detected at
boot time, the event device numbers may change.
In the default Armadillo-440 LCD Model userland, the input device file name
specified when starting xfbdev is fixed. Therefore if another input device such as a
USB keyboard has been connected, it is possible that touch screen control will not
work. To use other input devices, please connect them after booting.
Enter Ctrl + C to stop evtest.
9.2. swmgr
The swmgr command can be used to execute another command when a button is pressed.
swmgr is used as shown in Figure 9.2, “swmgr Command Format”.
[armadillo ~]# swmgr [BUTTON] [LOOP] [COMMAND]
Figure 9.2. swmgr Command Format
Armadillo-440 LCD Model Development Set Startup Guide
Input Devices
57