From: Nate Yocom <nate@yocom.org>
To: dmitry.torokhov@gmail.com
Cc: nate@yocom.org, linux-input@vger.kernel.org,
linux-kernel@vger.kernel.org, hadess@hadess.net,
benjamin.tissoires@redhat.com
Subject: [PATCH v6 4/5] Input: joystick: xpad: Add ABS_PROFILE to Docs
Date: Thu, 8 Sep 2022 10:39:29 -0700 [thread overview]
Message-ID: <20220908173930.28940-5-nate@yocom.org> (raw)
In-Reply-To: <20220908173930.28940-1-nate@yocom.org>
Add ABS_PROFILE description to Documentation/input/
Signed-off-by: Nate Yocom <nate@yocom.org>
---
Documentation/input/event-codes.rst | 6 ++++++
Documentation/input/gamepad.rst | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/Documentation/input/event-codes.rst b/Documentation/input/event-codes.rst
index 8741d390b184..b4557462edd7 100644
--- a/Documentation/input/event-codes.rst
+++ b/Documentation/input/event-codes.rst
@@ -235,6 +235,12 @@ A few EV_ABS codes have special meanings:
BTN_TOOL_<name> signals the type of tool that is currently detected by the
hardware and is otherwise independent of ABS_DISTANCE and/or BTN_TOUCH.
+* ABS_PROFILE:
+
+ - Used to describe the state of a multi-value profile switch. An event is
+ emitted only when the selected profile changes, indicating the newly
+ selected profile value.
+
* ABS_MT_<name>:
- Used to describe multitouch input events. Please see
diff --git a/Documentation/input/gamepad.rst b/Documentation/input/gamepad.rst
index 4d5e7fb80a84..71019de46036 100644
--- a/Documentation/input/gamepad.rst
+++ b/Documentation/input/gamepad.rst
@@ -189,3 +189,9 @@ Gamepads report the following events:
- Rumble:
Rumble is advertised as FF_RUMBLE.
+
+- Profile:
+
+ Some pads provide a multi-value profile selection switch. An example is the
+ XBox Adaptive and the XBox Elite 2 controllers. When the active profile is
+ switched, its newly selected value is emitted as an ABS_PROFILE event.
--
2.30.2
next prev parent reply other threads:[~2022-09-08 17:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-08 17:39 [PATCH v6 0/5] Input: joystick: xpad: Add X-Box Adaptive Controller support Nate Yocom
2022-09-08 17:39 ` [PATCH v6 1/5] Input: joystick: xpad: Add X-Box Adaptive support Nate Yocom
2022-09-28 7:21 ` Mattijs Korpershoek
2022-09-08 17:39 ` [PATCH v6 2/5] Input: joystick: xpad: Add X-Box Adaptive XBox button Nate Yocom
2022-09-28 7:21 ` Mattijs Korpershoek
2022-09-08 17:39 ` [PATCH v6 3/5] Input: joystick: xpad: Add ABS_PROFILE to uapi Nate Yocom
2022-09-08 17:39 ` Nate Yocom [this message]
2022-09-08 17:39 ` [PATCH v6 5/5] Input: joystick: xpad: Add X-Box Adaptive Profile button Nate Yocom
2022-09-13 21:46 ` [PATCH v6 0/5] Input: joystick: xpad: Add X-Box Adaptive Controller support Nate Yocom
2022-09-28 2:36 ` Nate Yocom
2022-09-29 1:34 ` Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220908173930.28940-5-nate@yocom.org \
--to=nate@yocom.org \
--cc=benjamin.tissoires@redhat.com \
--cc=dmitry.torokhov@gmail.com \
--cc=hadess@hadess.net \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®