Mercurial > sdl-ios-xcode
comparison src/events/SDL_touch.c @ 4644:fb500b3e1717
Added pressure support for touch events.
author | Jim Grandpre <jim.tla@gmail.com> |
---|---|
date | Sat, 29 May 2010 02:09:16 -0400 |
parents | 8806b78988f7 |
children | 0375d020e7e3 |
comparison
equal
deleted
inserted
replaced
4643:8806b78988f7 | 4644:fb500b3e1717 |
---|---|
422 event.tfinger.type = SDL_FINGERMOTION; | 422 event.tfinger.type = SDL_FINGERMOTION; |
423 event.tfinger.touchId = (Uint8) id; | 423 event.tfinger.touchId = (Uint8) id; |
424 event.tfinger.fingerId = (Uint8) fingerid; | 424 event.tfinger.fingerId = (Uint8) fingerid; |
425 event.tfinger.x = x; | 425 event.tfinger.x = x; |
426 event.tfinger.y = y; | 426 event.tfinger.y = y; |
427 event.tfinger.pressure = pressure; | |
427 event.tfinger.state = touch->buttonstate; | 428 event.tfinger.state = touch->buttonstate; |
428 event.tfinger.windowID = touch->focus ? touch->focus->id : 0; | 429 event.tfinger.windowID = touch->focus ? touch->focus->id : 0; |
429 posted = (SDL_PushEvent(&event) > 0); | 430 posted = (SDL_PushEvent(&event) > 0); |
430 } | 431 } |
431 finger->last_x = finger->x; | 432 finger->last_x = finger->x; |