summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_evdev.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/elput/elput_evdev.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/elput/elput_evdev.c b/src/lib/elput/elput_evdev.c
index 16157440ae..94de728e2d 100644
--- a/src/lib/elput/elput_evdev.c
+++ b/src/lib/elput/elput_evdev.c
@@ -547,6 +547,7 @@ _pointer_init(Elput_Seat *seat)
547 547
548 seat->ptr = ptr; 548 seat->ptr = ptr;
549 seat->count.ptr = 1; 549 seat->count.ptr = 1;
550 ptr->pressure = 1.0;
550 551
551 _seat_caps_update(seat); 552 _seat_caps_update(seat);
552 553
@@ -573,6 +574,7 @@ _touch_create(Elput_Seat *seat)
573 if (!touch) return NULL; 574 if (!touch) return NULL;
574 575
575 touch->seat = seat; 576 touch->seat = seat;
577 touch->pressure = 1.0;
576 578
577 return touch; 579 return touch;
578} 580}
@@ -665,7 +667,7 @@ _pointer_motion_send(Elput_Device *edev)
665 ev->multi.radius = 1; 667 ev->multi.radius = 1;
666 ev->multi.radius_x = 1; 668 ev->multi.radius_x = 1;
667 ev->multi.radius_y = 1; 669 ev->multi.radius_y = 1;
668 ev->multi.pressure = 1.0; 670 ev->multi.pressure = ptr->pressure;
669 ev->multi.angle = 0.0; 671 ev->multi.angle = 0.0;
670 ev->multi.x = ev->x; 672 ev->multi.x = ev->x;
671 ev->multi.y = ev->y; 673 ev->multi.y = ev->y;
@@ -768,7 +770,7 @@ _pointer_button_send(Elput_Device *edev, enum libinput_button_state state)
768 ev->multi.radius = 1; 770 ev->multi.radius = 1;
769 ev->multi.radius_x = 1; 771 ev->multi.radius_x = 1;
770 ev->multi.radius_y = 1; 772 ev->multi.radius_y = 1;
771 ev->multi.pressure = 1.0; 773 ev->multi.pressure = ptr->pressure;
772 ev->multi.angle = 0.0; 774 ev->multi.angle = 0.0;
773 ev->multi.x = ev->x; 775 ev->multi.x = ev->x;
774 ev->multi.y = ev->y; 776 ev->multi.y = ev->y;
@@ -995,7 +997,7 @@ _touch_event_send(Elput_Device *dev, int type)
995 ev->multi.radius = 1; 997 ev->multi.radius = 1;
996 ev->multi.radius_x = 1; 998 ev->multi.radius_x = 1;
997 ev->multi.radius_y = 1; 999 ev->multi.radius_y = 1;
998 ev->multi.pressure = 1.0; 1000 ev->multi.pressure = touch->pressure;
999 ev->multi.angle = 0.0; 1001 ev->multi.angle = 0.0;
1000 ev->multi.x = ev->x; 1002 ev->multi.x = ev->x;
1001 ev->multi.y = ev->y; 1003 ev->multi.y = ev->y;
@@ -1043,7 +1045,7 @@ _touch_motion_send(Elput_Device *dev)
1043 ev->multi.radius = 1; 1045 ev->multi.radius = 1;
1044 ev->multi.radius_x = 1; 1046 ev->multi.radius_x = 1;
1045 ev->multi.radius_y = 1; 1047 ev->multi.radius_y = 1;
1046 ev->multi.pressure = 1.0; 1048 ev->multi.pressure = touch->pressure;
1047 ev->multi.angle = 0.0; 1049 ev->multi.angle = 0.0;
1048 ev->multi.x = ev->x; 1050 ev->multi.x = ev->x;
1049 ev->multi.y = ev->y; 1051 ev->multi.y = ev->y;