Skip to content

Commit 3309677

Browse files
whotdtor
authored andcommitted
Input: define INPUT_PROP_ACCELEROMETER behavior
Spell out what this property means to userspace. If the property is set, all directional axes must be accelerometer axes, any other axes are left as-is. This allows an accelerometer device to e.g. have an ABS_WHEEL. It is not permitted to mix normal directional axes and accelerometer axes on the same device node. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Jiri Kosina <jkosina@suse.cz> Reviewed-by: Bastien Nocera <hadess@hadess.net> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 85734b1 commit 3309677

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/input/event-codes.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,12 @@ accordingly. This property does not affect kernel behavior.
294294
The kernel does not provide button emulation for such devices but treats
295295
them as any other INPUT_PROP_BUTTONPAD device.
296296

297+
INPUT_PROP_ACCELEROMETER
298+
-------------------------
299+
Directional axes on this device (absolute and/or relative x, y, z) represent
300+
accelerometer data. All other axes retain their meaning. A device must not mix
301+
regular directional axes and accelerometer axes on the same event node.
302+
297303
Guidelines:
298304
==========
299305
The guidelines below ensure proper single-touch and multi-finger functionality.

0 commit comments

Comments
 (0)