linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Pär Eriksson" <parherman@gmail.com>
To: "Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
	"Vicki Pfau" <vi@endrift.com>,
	"Pavel Rojtberg" <rojtberg@gmail.com>,
	"Nilton Perim Neto" <niltonperimneto@gmail.com>,
	"Antheas Kapenekakis" <lkml@antheas.dev>,
	"Pär Eriksson" <parherman@gmail.com>,
	"Mario Limonciello" <mario.limonciello@amd.com>,
	linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 1/3] Input: xpad - Add MAP_FERRARI_458_CUSTOM_AXES mapping flag
Date: Tue,  5 Aug 2025 21:20:28 +0200	[thread overview]
Message-ID: <20250805192036.53918-2-parherman@gmail.com> (raw)
In-Reply-To: <20250805192036.53918-1-parherman@gmail.com>

Introduce MAP_FERRARI_458_CUSTOM_AXES to support custom axis mapping for
the Thrustmaster Ferrari 458 Spider wheel and pedals.

Signed-off-by: Pär Eriksson <parherman@gmail.com>
---
 drivers/input/joystick/xpad.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index 1d8c579b5433..51e285efac79 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -84,6 +84,7 @@
 #define MAP_PADDLES			BIT(4)
 #define MAP_PROFILE_BUTTON		BIT(5)
 #define MAP_SHARE_OFFSET		BIT(6)
+#define MAP_FERRARI_458_CUSTOM_AXES		BIT(7)
 
 #define DANCEPAD_MAP_CONFIG	(MAP_DPAD_TO_BUTTONS |			\
 				MAP_TRIGGERS_TO_BUTTONS | MAP_STICKS_TO_NULL)
-- 
2.50.1


  reply	other threads:[~2025-08-05 19:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-05 19:20 [PATCH 0/3] xpad: Add support for Thrustmaster, Inc. Ferrari 458 Spider Racing Wheel Pär Eriksson
2025-08-05 19:20 ` Pär Eriksson [this message]
2025-08-05 19:20 ` [PATCH 2/3] Input: xpad - Add Thrustmaster Ferrari 458 Spider (044f:b671) device entry Pär Eriksson
2025-08-05 19:20 ` [PATCH 3/3] Input: xpad - Implement custom axis mapping for Ferrari 458 Spider Pär Eriksson
2025-08-05 20:23 ` [PATCH 0/3] xpad: Add support for Thrustmaster, Inc. Ferrari 458 Spider Racing Wheel Vicki Pfau
2025-08-05 20:57   ` Dmitry Torokhov
2025-08-06  0:16     ` Vicki Pfau

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=20250805192036.53918-2-parherman@gmail.com \
    --to=parherman@gmail.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkml@antheas.dev \
    --cc=mario.limonciello@amd.com \
    --cc=niltonperimneto@gmail.com \
    --cc=rojtberg@gmail.com \
    --cc=vi@endrift.com \
    /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;
as well as URLs for NNTP newsgroup(s).