Skip to content

Commit 2161a2a

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input fix from Dmitry Torokhov: "One small change to make joydev (which is used by older games) to bind to devices that export Z axis but not X or Y (such as TRC rudder)" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: joydev - recognize devices with Z axis as joysticks
2 parents dbd8805 + 9fb6de1 commit 2161a2a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/input/joydev.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,12 @@ static const struct input_device_id joydev_ids[] = {
946946
.evbit = { BIT_MASK(EV_ABS) },
947947
.absbit = { BIT_MASK(ABS_X) },
948948
},
949+
{
950+
.flags = INPUT_DEVICE_ID_MATCH_EVBIT |
951+
INPUT_DEVICE_ID_MATCH_ABSBIT,
952+
.evbit = { BIT_MASK(EV_ABS) },
953+
.absbit = { BIT_MASK(ABS_Z) },
954+
},
949955
{
950956
.flags = INPUT_DEVICE_ID_MATCH_EVBIT |
951957
INPUT_DEVICE_ID_MATCH_ABSBIT,

0 commit comments

Comments
 (0)