Re: [PATCH] Input: break joystick limitation of maximum 80 buttons

2020-07-13 Thread Wei Shuai
hi Andy, sorry from a newbie we found Linux kernel has max joystick buttons up to 80, no more We are selling USB joystick device QMCP737C for flight simulator, which is nothing but common USB joystick. it has 104 buttons Product link https://x-plane.vip/quickmade/qmcp737c/ it works well on

Re: [PATCH] Input: break joystick limitation of maximum 80 buttons

2020-07-13 Thread Andy Shevchenko
On Sun, Jul 12, 2020 at 07:54:54AM +0800, Wei Shuai wrote: > The joystick max buttons 80 limitation comes from > > #define BTN_JOYSTICK 0x120 > #define BTN_DEAD 0x12f > #define BTN_TRIGGER_HAPPY 0x2c0 > #define KEY_MAX 0x2ff > > include/uapi/linux/input-event-codes.h > > according to function

[PATCH] Input: break joystick limitation of maximum 80 buttons

2020-07-11 Thread Wei Shuai
The joystick max buttons 80 limitation comes from #define BTN_JOYSTICK 0x120 #define BTN_DEAD 0x12f #define BTN_TRIGGER_HAPPY 0x2c0 #define KEY_MAX 0x2ff include/uapi/linux/input-event-codes.h according to function hidinput_configure_usage() in file drivers/hid/hid-input.c the joystick button