最終更新:2013-10-31 (木) 06:37:33 (3829d)
Linux/イベント
kernel.org/doc/Documentation/input/event-codes.txt
input_event
- イベントを表す構造体。
struct input_event { struct timeval time; __u16 type; __u16 code; __s32 value; };
- type,codeはlinux/input.hで定義されている
type,code
- type:
- EV_~
- code:
EV_SYN
- Used as markers to separate events. Events may be separated in time or in space, such as with the multitouch protocol.
- SYN_REPORT?
- SYN_CONFIG?
- SYN_MT_REPORT
- SYN_DROPPED?
EV_KEY
- Used to describe state changes of keyboards, buttons, or other key-like devices.
EV_REL
- Used to describe relative axis value changes, e.g. moving the mouse 5 units to the left.
EV_ABS
- Used to describe absolute axis value changes, e.g. describing the coordinates of a touch on a touchscreen.
- ABS_DISTANCE?
- ABS_MT_<name> - Linux/マルチタッチ/イベント
EV_MSC?
- Used to describe miscellaneous input data that do not fit into other types.
EV_SW?
- Used to describe binary state input switches.
EV_LED?
- Used to turn LEDs on devices on and off.
EV_SND?
- Used to output sound to devices.
EV_REP
- Used for autorepeating devices.
EV_FF?
- Used to send force feedback commands to an input device.
EV_PWR?
- A special type for power button and switch input.
EV_FF_STATUS?
- Used to receive force feedback device status.