mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-11 08:40:17 +01:00
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:
parent
9c042e9620
commit
34da27650d
4 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue