Wayland touch inputs send normalized coords

Resolves #4361
This commit is contained in:
Henk Kalkwater 2021-05-05 14:08:30 +02:00 committed by Sam Lantinga
parent 31637ddeea
commit 889cebb7c2
1 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@ touch_handle_touch(void *data,
**/
float FIXED_TO_FLOAT = 1. / 10000.;
float xf = FIXED_TO_FLOAT * x;
float yf = FIXED_TO_FLOAT * y;
float xf = FIXED_TO_FLOAT * normalized_x;
float yf = FIXED_TO_FLOAT * normalized_y;
float PRESSURE_TO_FLOAT = 1. / 255.;
float pressuref = PRESSURE_TO_FLOAT * pressure;