mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-22 08:00:40 +01:00
Change touch event slots from being unsigned to signed
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
parent
1bed4eadd2
commit
e108e8ddba
2 changed files with 3 additions and 3 deletions
|
|
@ -71,7 +71,7 @@ struct libinput_event_pointer {
|
|||
struct libinput_event_touch {
|
||||
struct libinput_event base;
|
||||
uint32_t time;
|
||||
uint32_t slot;
|
||||
int32_t slot;
|
||||
li_fixed_t x;
|
||||
li_fixed_t y;
|
||||
enum libinput_touch_type touch_type;
|
||||
|
|
@ -289,7 +289,7 @@ libinput_event_touch_get_time(struct libinput_event_touch *event)
|
|||
return event->time;
|
||||
}
|
||||
|
||||
LIBINPUT_EXPORT uint32_t
|
||||
LIBINPUT_EXPORT int32_t
|
||||
libinput_event_touch_get_slot(struct libinput_event_touch *event)
|
||||
{
|
||||
return event->slot;
|
||||
|
|
|
|||
|
|
@ -562,7 +562,7 @@ libinput_event_touch_get_time(struct libinput_event_touch *event);
|
|||
*
|
||||
* @return The slot of this touch event
|
||||
*/
|
||||
uint32_t
|
||||
int32_t
|
||||
libinput_event_touch_get_slot(struct libinput_event_touch *event);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue