Re: [RFC PATCH 1/6] Input: Introduce EV_BTN event for generic buttons
From: Randy Dunlap
Date: Sun Jan 04 2026 - 17:30:49 EST
Hi--
On 1/4/26 1:31 PM, Tomasz Pakuła wrote:
> This will be used to fire generic button events that only transmit
> button number and it's value, not related to any defined usage.
its
>
> Made for HID joysticks but could be adopted by other devices.
>
> Signed-off-by: Tomasz Pakuła <tomasz.pakula.oficjalny@xxxxxxxxx>
> ---
> 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
changes to generic,
> + usages.
> +
> * EV_LED:
>
> - Used to turn LEDs on devices on and off.
--
~Randy