Change touch event slots from being unsigned to signed

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
Jonas Ådahl 2014-02-12 20:52:14 +01:00
parent 1bed4eadd2
commit e108e8ddba
2 changed files with 3 additions and 3 deletions

View file

@ -71,7 +71,7 @@ struct libinput_event_pointer {
struct libinput_event_touch { struct libinput_event_touch {
struct libinput_event base; struct libinput_event base;
uint32_t time; uint32_t time;
uint32_t slot; int32_t slot;
li_fixed_t x; li_fixed_t x;
li_fixed_t y; li_fixed_t y;
enum libinput_touch_type touch_type; enum libinput_touch_type touch_type;
@ -289,7 +289,7 @@ libinput_event_touch_get_time(struct libinput_event_touch *event)
return event->time; return event->time;
} }
LIBINPUT_EXPORT uint32_t LIBINPUT_EXPORT int32_t
libinput_event_touch_get_slot(struct libinput_event_touch *event) libinput_event_touch_get_slot(struct libinput_event_touch *event)
{ {
return event->slot; return event->slot;

View file

@ -562,7 +562,7 @@ libinput_event_touch_get_time(struct libinput_event_touch *event);
* *
* @return The slot of this touch event * @return The slot of this touch event
*/ */
uint32_t int32_t
libinput_event_touch_get_slot(struct libinput_event_touch *event); libinput_event_touch_get_slot(struct libinput_event_touch *event);
/** /**