mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-07 16:38:31 +02: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_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;
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue