input: Consistently use enums for modifier/axis/state
For some reason we'd managed to have a mismatching header prototype and implementation. Fix this up to consistently use enums everywhere. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
c0f3cb87be
commit
9248340db0
|
@ -855,14 +855,15 @@ weston_pointer_has_focus_resource(struct weston_pointer *pointer);
|
|||
void
|
||||
weston_pointer_send_button(struct weston_pointer *pointer,
|
||||
const struct timespec *time,
|
||||
uint32_t button, uint32_t state_w);
|
||||
uint32_t button,
|
||||
enum wl_pointer_button_state state);
|
||||
void
|
||||
weston_pointer_send_axis(struct weston_pointer *pointer,
|
||||
const struct timespec *time,
|
||||
struct weston_pointer_axis_event *event);
|
||||
void
|
||||
weston_pointer_send_axis_source(struct weston_pointer *pointer,
|
||||
uint32_t source);
|
||||
enum wl_pointer_axis_source source);
|
||||
void
|
||||
weston_pointer_send_frame(struct weston_pointer *pointer);
|
||||
|
||||
|
|
|
@ -67,7 +67,8 @@ weston_compositor_add_binding(struct weston_compositor *compositor,
|
|||
|
||||
WL_EXPORT struct weston_binding *
|
||||
weston_compositor_add_key_binding(struct weston_compositor *compositor,
|
||||
uint32_t key, uint32_t modifier,
|
||||
uint32_t key,
|
||||
enum weston_keyboard_modifier modifier,
|
||||
weston_key_binding_handler_t handler,
|
||||
void *data)
|
||||
{
|
||||
|
@ -85,7 +86,7 @@ weston_compositor_add_key_binding(struct weston_compositor *compositor,
|
|||
|
||||
WL_EXPORT struct weston_binding *
|
||||
weston_compositor_add_modifier_binding(struct weston_compositor *compositor,
|
||||
uint32_t modifier,
|
||||
enum weston_keyboard_modifier modifier,
|
||||
weston_modifier_binding_handler_t handler,
|
||||
void *data)
|
||||
{
|
||||
|
@ -103,7 +104,8 @@ weston_compositor_add_modifier_binding(struct weston_compositor *compositor,
|
|||
|
||||
WL_EXPORT struct weston_binding *
|
||||
weston_compositor_add_button_binding(struct weston_compositor *compositor,
|
||||
uint32_t button, uint32_t modifier,
|
||||
uint32_t button,
|
||||
enum weston_keyboard_modifier modifier,
|
||||
weston_button_binding_handler_t handler,
|
||||
void *data)
|
||||
{
|
||||
|
@ -121,7 +123,7 @@ weston_compositor_add_button_binding(struct weston_compositor *compositor,
|
|||
|
||||
WL_EXPORT struct weston_binding *
|
||||
weston_compositor_add_touch_binding(struct weston_compositor *compositor,
|
||||
uint32_t modifier,
|
||||
enum weston_keyboard_modifier modifier,
|
||||
weston_touch_binding_handler_t handler,
|
||||
void *data)
|
||||
{
|
||||
|
@ -139,7 +141,8 @@ weston_compositor_add_touch_binding(struct weston_compositor *compositor,
|
|||
|
||||
WL_EXPORT struct weston_binding *
|
||||
weston_compositor_add_axis_binding(struct weston_compositor *compositor,
|
||||
uint32_t axis, uint32_t modifier,
|
||||
uint32_t axis,
|
||||
enum weston_keyboard_modifier modifier,
|
||||
weston_axis_binding_handler_t handler,
|
||||
void *data)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue