Added pressure support for touch events.
This commit is contained in:
parent
11b6823d3f
commit
3dcae4341c
6 changed files with 38 additions and 18 deletions
|
@ -424,6 +424,7 @@ SDL_SendTouchMotion(int id, int fingerid, int relative,
|
|||
event.tfinger.fingerId = (Uint8) fingerid;
|
||||
event.tfinger.x = x;
|
||||
event.tfinger.y = y;
|
||||
event.tfinger.pressure = pressure;
|
||||
event.tfinger.state = touch->buttonstate;
|
||||
event.tfinger.windowID = touch->focus ? touch->focus->id : 0;
|
||||
posted = (SDL_PushEvent(&event) > 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue