summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStephen Chandler Paul <thatslyude@gmail.com>2014-06-03 20:08:02 -0400
committerJonas Ã…dahl <jadahl@gmail.com>2014-06-09 20:48:05 +0200
commite912d620d0f20f415b4d3dde967648e4b9c317b9 (patch)
treeea52ff99da0137e5da4a72da94d06a7fe9b97b43 /tools
parentf3084e2c0dbc89238112ef0ed4ffd4ebb059ece6 (diff)
downloadlibinput-e912d620d0f20f415b4d3dde967648e4b9c317b9.tar.gz
s/libinput_pointer_button_state/libinput_button_state/
Button states are applicable to more then just the pointer, so having a non-generic name name for a generic enumerator value like libinput_pointer_button_state doesn't make sense. Changing it to something generic like libinput_button_state allows it to be reused by other devices that may potentially be added to libinput in the future. Signed-off-by: Stephen Chandler Paul <thatslyude@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/event-debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/event-debug.c b/tools/event-debug.c
index e41da05a..864f77ed 100644
--- a/tools/event-debug.c
+++ b/tools/event-debug.c
@@ -279,14 +279,14 @@ static void
print_button_event(struct libinput_event *ev)
{
struct libinput_event_pointer *p = libinput_event_get_pointer_event(ev);
- enum libinput_pointer_button_state state;
+ enum libinput_button_state state;
print_event_time(libinput_event_pointer_get_time(p));
state = libinput_event_pointer_get_button_state(p);
printf("%3d %s, seat count: %u\n",
libinput_event_pointer_get_button(p),
- state == LIBINPUT_POINTER_BUTTON_STATE_PRESSED ? "pressed" : "released",
+ state == LIBINPUT_BUTTON_STATE_PRESSED ? "pressed" : "released",
libinput_event_pointer_get_seat_button_count(p));
}