touch: Correct pressure calculation

Fingertip S for Nintendo Switch uses a custom spatial calculation. It now allows to identify area of touch.
This commit is contained in:
CTCaer
2020-03-13 08:34:16 +02:00
parent 8b74c487eb
commit 95e3159fe9
2 changed files with 10 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ typedef struct _touch_event {
u16 type; // Event type.
u16 x; // Horizontal coordinates.
u16 y; // Vertical coordinates.
u8 z;
u32 z;
u8 fingers;
bool touch;
} touch_event;