hwdb: add a hwdb file to override ID_INPUT assignments
The input_id builtin assigns the various ID_INPUT based on the exported evdev bits. In some cases, the device may not have the properties required to label a device as one specific type but the physical form factor is clear. e.g. in the case of #7197 it's a tablet pad that does not have x/y axes which the kernel exports for pads for historical reasons. A custom override is needed, best to be solved with a hwdb entry. Related #7197
This commit is contained in:
@@ -65,6 +65,7 @@ UDEV_TAG = Word(string.ascii_uppercase, alphanums + '_')
|
||||
|
||||
TYPES = {'mouse': ('usb', 'bluetooth', 'ps2', '*'),
|
||||
'evdev': ('name', 'atkbd', 'input'),
|
||||
'id-input': ('modalias'),
|
||||
'touchpad': ('i8042', 'rmi', 'bluetooth', 'usb'),
|
||||
'joystick': ('i8042', 'rmi', 'bluetooth', 'usb'),
|
||||
'keyboard': ('name', ),
|
||||
@@ -105,6 +106,18 @@ def property_grammar():
|
||||
('MOUSE_WHEEL_CLICK_ANGLE_HORIZONTAL', INTEGER),
|
||||
('MOUSE_WHEEL_CLICK_COUNT', INTEGER),
|
||||
('MOUSE_WHEEL_CLICK_COUNT_HORIZONTAL', INTEGER),
|
||||
('ID_INPUT', Literal('1')),
|
||||
('ID_INPUT_ACCELEROMETER', Literal('1')),
|
||||
('ID_INPUT_JOYSTICK', Literal('1')),
|
||||
('ID_INPUT_KEY', Literal('1')),
|
||||
('ID_INPUT_KEYBOARD', Literal('1')),
|
||||
('ID_INPUT_MOUSE', Literal('1')),
|
||||
('ID_INPUT_POINTINGSTICK', Literal('1')),
|
||||
('ID_INPUT_SWITCH', Literal('1')),
|
||||
('ID_INPUT_TABLET', Literal('1')),
|
||||
('ID_INPUT_TABLET_PAD', Literal('1')),
|
||||
('ID_INPUT_TOUCHPAD', Literal('1')),
|
||||
('ID_INPUT_TOUCHSCREEN', Literal('1')),
|
||||
('ID_INPUT_TRACKBALL', Literal('1')),
|
||||
('MOUSE_WHEEL_TILT_HORIZONTAL', Literal('1')),
|
||||
('MOUSE_WHEEL_TILT_VERTICAL', Literal('1')),
|
||||
|
||||
Reference in New Issue
Block a user