forked from drath/libratbag
etekcity: the mouse has ten buttons, not nine
the button index starts at 0, so we need to add 1 to the max button number. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
@@ -367,7 +367,7 @@ etekcity_probe(struct ratbag_device *device, const struct ratbag_id id)
|
||||
ratbag_set_drv_data(device, drv_data);
|
||||
|
||||
/* profiles are 0-indexed */
|
||||
ratbag_device_init_profiles(device, ETEKCITY_PROFILE_MAX + 1, ETEKCITY_BUTTON_MAX);
|
||||
ratbag_device_init_profiles(device, ETEKCITY_PROFILE_MAX + 1, ETEKCITY_BUTTON_MAX + 1);
|
||||
|
||||
profile = ratbag_device_get_active_profile(device);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user