This will be used to fire generic button events that only transmit
button number and it's value, not related to any defined usage.
Made for HID joysticks but could be adopted by other devices.
Signed-off-by: Tomasz Pakuła <tomasz.pakula.oficjalny@gmail.com>
---
Documentation/input/event-codes.rst | 5 +++++
include/uapi/linux/input-event-codes.h | 1 +
2 files changed, 6 insertions(+)
diff --git a/Documentation/input/event-codes.rst b/Documentation/input/event-codes.rst
index 4424cbff251f..c387eaa63dfb 100644
--- a/Documentation/input/event-codes.rst
+++ b/Documentation/input/event-codes.rst
@@ -59,6 +59,11 @@ Codes section for details on valid codes for each type.
- Used to describe binary state input switches.
+* EV_BTN:
+
+ - Used to describe state changes generic, numbered buttons without defined
+ usages.
+
* EV_LED:
- Used to turn LEDs on devices on and off.
diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h
index 30f3c9eaafaa..1c853c37b58a 100644
--- a/include/uapi/linux/input-event-codes.h
+++ b/include/uapi/linux/input-event-codes.h
@@ -42,6 +42,7 @@
#define EV_ABS 0x03
#define EV_MSC 0x04
#define EV_SW 0x05
+#define EV_BTN 0x06
#define EV_LED 0x11
#define EV_SND 0x12
#define EV_REP 0x14
--
2.52.0