tablet: take an uint32_t for the eraser button

For consistency with other set_button configuration options.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1231>
This commit is contained in:
Peter Hutterer 2025-06-19 10:11:14 +10:00 committed by Marge Bot
parent 9c042e9620
commit 34da27650d
4 changed files with 4 additions and 4 deletions

View file

@ -1330,7 +1330,7 @@ eraser_button_get_default_mode(struct libinput_tablet_tool *tool)
}
static enum libinput_config_status
eraser_button_set_button(struct libinput_tablet_tool *tool, unsigned int button)
eraser_button_set_button(struct libinput_tablet_tool *tool, uint32_t button)
{
if (!libinput_tablet_tool_has_button(tool, button))
return LIBINPUT_CONFIG_STATUS_INVALID;

View file

@ -548,7 +548,7 @@ struct libinput_tablet_tool_config_eraser_button {
enum libinput_config_eraser_button_mode (*get_mode)(struct libinput_tablet_tool *tool);
enum libinput_config_eraser_button_mode (*get_default_mode)(struct libinput_tablet_tool *tool);
enum libinput_config_status (*set_button)(struct libinput_tablet_tool *tool, unsigned int button);
enum libinput_config_status (*set_button)(struct libinput_tablet_tool *tool, uint32_t button);
unsigned int (*get_button)(struct libinput_tablet_tool *tool);
unsigned int (*get_default_button)(struct libinput_tablet_tool *tool);
};

View file

@ -5104,7 +5104,7 @@ libinput_tablet_tool_config_eraser_button_get_default_mode(struct libinput_table
LIBINPUT_EXPORT enum libinput_config_status
libinput_tablet_tool_config_eraser_button_set_button(struct libinput_tablet_tool *tool,
unsigned int button)
uint32_t button)
{
if (!libinput_tablet_tool_config_eraser_button_get_modes(tool))
return LIBINPUT_CONFIG_STATUS_UNSUPPORTED;

View file

@ -7124,7 +7124,7 @@ libinput_tablet_tool_config_eraser_button_get_default_mode(struct libinput_table
*/
enum libinput_config_status
libinput_tablet_tool_config_eraser_button_set_button(struct libinput_tablet_tool *tool,
unsigned int button);
uint32_t button);
/**
* @ingroup config