-
Notifications
You must be signed in to change notification settings - Fork 15
Event types
Blub edited this page Sep 14, 2010
·
2 revisions
Each input event consists of 3 parts: A type, a code, and a value.
There are several types of events. You can either use a numerical representation, or its name.
The following types are currently recognized by name:
type | code | value | notes |
---|---|---|---|
EV_SYN | 0 | 0 | Synchronize events |
EV_KEY | Keycode | 0 = pressed, 1 = released | A key was pressed or released on a keyboard device, or a button on a mouse |
EV_REL | axis | amount | A relative motion event along an exis by a certain amount |
EV_ABS | axis | amount | An absolute motion event to a point along an axis |
EV_MSC | unknown | unknown | A miscellanous device event. |
EV_SW | switch | value | Switch events like shutting a lid, plugging in headphones… |
EV_LED | led-id | on/off | An LED was activated/deactivated |
EV_SND | type | unk | A “sound” event (click = 0, bell = 1, tone = 2) |
(And: EV_REP, EV_PWR, EV_FF_STATUS)
You can print the generated device events in human readable form using Showevents Mode