Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case SDL_FINGERMOTION: {
- if(event.tfinger.dy > 0) {
- gwin->view_down();
- }
- else if(event.tfinger.dy < 0) {
- gwin->view_up();
- }
- if(event.tfinger.dx > 0) {
- gwin->view_right();
- }
- else if(event.tfinger.dx < 0) {
- gwin->view_left();
- }
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement