mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
include: add a range of button labels.
Mostly the same buttons as defined by linux/input.h, with five exceptions: "Button Unknown" for a button that cannot be labelled. "Button Wheel Up", "Button Wheel Down" for buttons 4/5, traditionally the wheel buttons. "Button Horiz Wheel Up", "Button Horiz Wheel Down" for buttons 6/7, traditionally the horiz. wheel buttons. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
8a6ed44a8b
commit
a706dd8771
2 changed files with 153 additions and 1 deletions
|
|
@ -91,7 +91,80 @@ static struct dev_properties
|
|||
{0, AXIS_LABEL_PROP_ABS_TILT_Y},
|
||||
{0, AXIS_LABEL_PROP_ABS_TOOL_WIDTH},
|
||||
{0, AXIS_LABEL_PROP_ABS_VOLUME},
|
||||
{0, AXIS_LABEL_PROP_ABS_MISC}
|
||||
{0, AXIS_LABEL_PROP_ABS_MISC},
|
||||
|
||||
{0, BTN_LABEL_PROP},
|
||||
{0, BTN_LABEL_PROP_BTN_UNKNOWN},
|
||||
{0, BTN_LABEL_PROP_BTN_WHEEL_UP},
|
||||
{0, BTN_LABEL_PROP_BTN_WHEEL_DOWN},
|
||||
{0, BTN_LABEL_PROP_BTN_HWHEEL_LEFT},
|
||||
{0, BTN_LABEL_PROP_BTN_HWHEEL_RIGHT},
|
||||
{0, BTN_LABEL_PROP_BTN_0},
|
||||
{0, BTN_LABEL_PROP_BTN_1},
|
||||
{0, BTN_LABEL_PROP_BTN_2},
|
||||
{0, BTN_LABEL_PROP_BTN_3},
|
||||
{0, BTN_LABEL_PROP_BTN_4},
|
||||
{0, BTN_LABEL_PROP_BTN_5},
|
||||
{0, BTN_LABEL_PROP_BTN_6},
|
||||
{0, BTN_LABEL_PROP_BTN_7},
|
||||
{0, BTN_LABEL_PROP_BTN_8},
|
||||
{0, BTN_LABEL_PROP_BTN_9},
|
||||
|
||||
{0, BTN_LABEL_PROP_BTN_LEFT},
|
||||
{0, BTN_LABEL_PROP_BTN_RIGHT},
|
||||
{0, BTN_LABEL_PROP_BTN_MIDDLE},
|
||||
{0, BTN_LABEL_PROP_BTN_SIDE},
|
||||
{0, BTN_LABEL_PROP_BTN_EXTRA},
|
||||
{0, BTN_LABEL_PROP_BTN_FORWARD},
|
||||
{0, BTN_LABEL_PROP_BTN_BACK},
|
||||
{0, BTN_LABEL_PROP_BTN_TASK},
|
||||
|
||||
{0, BTN_LABEL_PROP_BTN_TRIGGER},
|
||||
{0, BTN_LABEL_PROP_BTN_THUMB},
|
||||
{0, BTN_LABEL_PROP_BTN_THUMB2},
|
||||
{0, BTN_LABEL_PROP_BTN_TOP},
|
||||
{0, BTN_LABEL_PROP_BTN_TOP2},
|
||||
{0, BTN_LABEL_PROP_BTN_PINKIE},
|
||||
{0, BTN_LABEL_PROP_BTN_BASE},
|
||||
{0, BTN_LABEL_PROP_BTN_BASE2},
|
||||
{0, BTN_LABEL_PROP_BTN_BASE3},
|
||||
{0, BTN_LABEL_PROP_BTN_BASE4},
|
||||
{0, BTN_LABEL_PROP_BTN_BASE5},
|
||||
{0, BTN_LABEL_PROP_BTN_BASE6},
|
||||
{0, BTN_LABEL_PROP_BTN_DEAD},
|
||||
|
||||
{0, BTN_LABEL_PROP_BTN_A},
|
||||
{0, BTN_LABEL_PROP_BTN_B},
|
||||
{0, BTN_LABEL_PROP_BTN_C},
|
||||
{0, BTN_LABEL_PROP_BTN_X},
|
||||
{0, BTN_LABEL_PROP_BTN_Y},
|
||||
{0, BTN_LABEL_PROP_BTN_Z},
|
||||
{0, BTN_LABEL_PROP_BTN_TL},
|
||||
{0, BTN_LABEL_PROP_BTN_TR},
|
||||
{0, BTN_LABEL_PROP_BTN_TL2},
|
||||
{0, BTN_LABEL_PROP_BTN_TR2},
|
||||
{0, BTN_LABEL_PROP_BTN_SELECT},
|
||||
{0, BTN_LABEL_PROP_BTN_START},
|
||||
{0, BTN_LABEL_PROP_BTN_MODE},
|
||||
{0, BTN_LABEL_PROP_BTN_THUMBL},
|
||||
{0, BTN_LABEL_PROP_BTN_THUMBR},
|
||||
|
||||
{0, BTN_LABEL_PROP_BTN_TOOL_PEN},
|
||||
{0, BTN_LABEL_PROP_BTN_TOOL_RUBBER},
|
||||
{0, BTN_LABEL_PROP_BTN_TOOL_BRUSH},
|
||||
{0, BTN_LABEL_PROP_BTN_TOOL_PENCIL},
|
||||
{0, BTN_LABEL_PROP_BTN_TOOL_AIRBRUSH},
|
||||
{0, BTN_LABEL_PROP_BTN_TOOL_FINGER},
|
||||
{0, BTN_LABEL_PROP_BTN_TOOL_MOUSE},
|
||||
{0, BTN_LABEL_PROP_BTN_TOOL_LENS},
|
||||
{0, BTN_LABEL_PROP_BTN_TOUCH},
|
||||
{0, BTN_LABEL_PROP_BTN_STYLUS},
|
||||
{0, BTN_LABEL_PROP_BTN_STYLUS2},
|
||||
{0, BTN_LABEL_PROP_BTN_TOOL_DOUBLETAP},
|
||||
{0, BTN_LABEL_PROP_BTN_TOOL_TRIPLETAP},
|
||||
|
||||
{0, BTN_LABEL_PROP_BTN_GEAR_DOWN},
|
||||
{0, BTN_LABEL_PROP_BTN_GEAR_UP}
|
||||
};
|
||||
|
||||
static long XIPropHandlerID = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue