Advertisement
dominus

Untitled

Jan 27th, 2019
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. case SDL_FINGERMOTION: {
  2. if(event.tfinger.dy > 0) {
  3. gwin->view_down();
  4. }
  5. else if(event.tfinger.dy < 0) {
  6. gwin->view_up();
  7. }
  8. if(event.tfinger.dx > 0) {
  9. gwin->view_right();
  10. }
  11. else if(event.tfinger.dx < 0) {
  12. gwin->view_left();
  13. }
  14. break;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement