mirror of https://gitee.com/openkylin/linux.git
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
This commit is contained in:
commit
2161a2a644
|
@ -946,6 +946,12 @@ static const struct input_device_id joydev_ids[] = {
|
||||||
.evbit = { BIT_MASK(EV_ABS) },
|
.evbit = { BIT_MASK(EV_ABS) },
|
||||||
.absbit = { BIT_MASK(ABS_X) },
|
.absbit = { BIT_MASK(ABS_X) },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.flags = INPUT_DEVICE_ID_MATCH_EVBIT |
|
||||||
|
INPUT_DEVICE_ID_MATCH_ABSBIT,
|
||||||
|
.evbit = { BIT_MASK(EV_ABS) },
|
||||||
|
.absbit = { BIT_MASK(ABS_Z) },
|
||||||
|
},
|
||||||
{
|
{
|
||||||
.flags = INPUT_DEVICE_ID_MATCH_EVBIT |
|
.flags = INPUT_DEVICE_ID_MATCH_EVBIT |
|
||||||
INPUT_DEVICE_ID_MATCH_ABSBIT,
|
INPUT_DEVICE_ID_MATCH_ABSBIT,
|
||||||
|
|
Loading…
Reference in New Issue