mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-29 18:20:09 +01:00
Change the directions bitmask to a uin32_t
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
577422f692
commit
ab42022253
3 changed files with 4 additions and 4 deletions
|
|
@ -327,7 +327,7 @@ tp_gesture_handle_state_unknown(struct tp_dispatch *tp, uint64_t time)
|
|||
{
|
||||
struct tp_touch *first = tp->gesture.touches[0],
|
||||
*second = tp->gesture.touches[1];
|
||||
int dir1, dir2;
|
||||
uint32_t dir1, dir2;
|
||||
int yres = tp->device->abs.absinfo_y->resolution;
|
||||
int vert_distance;
|
||||
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ filter_get_type(struct motion_filter *filter)
|
|||
struct pointer_tracker {
|
||||
struct normalized_coords delta; /* delta to most recent event */
|
||||
uint64_t time; /* us */
|
||||
int dir;
|
||||
uint32_t dir;
|
||||
};
|
||||
|
||||
struct pointer_accelerator {
|
||||
|
|
|
|||
|
|
@ -700,10 +700,10 @@ enum directions {
|
|||
UNDEFINED_DIRECTION = 0xff
|
||||
};
|
||||
|
||||
static inline int
|
||||
static inline uint32_t
|
||||
normalized_get_direction(struct normalized_coords norm)
|
||||
{
|
||||
int dir = UNDEFINED_DIRECTION;
|
||||
uint32_t dir = UNDEFINED_DIRECTION;
|
||||
int d1, d2;
|
||||
double r;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue