comparison render_sdl.c @ 897:b9564fb88a5a

WIP support for mega mouse
author Michael Pavone <pavone@retrodev.com>
date Wed, 25 Nov 2015 20:32:20 -0800
parents 252dfd29831d
children b3b399665356
comparison
equal deleted inserted replaced
896:74cc31040521 897:b9564fb88a5a
542 handle_joyup(event->jbutton.which, event->jbutton.button); 542 handle_joyup(event->jbutton.which, event->jbutton.button);
543 break; 543 break;
544 case SDL_JOYHATMOTION: 544 case SDL_JOYHATMOTION:
545 handle_joy_dpad(event->jbutton.which, event->jhat.hat, event->jhat.value); 545 handle_joy_dpad(event->jbutton.which, event->jhat.hat, event->jhat.value);
546 break; 546 break;
547 case SDL_MOUSEMOTION:
548 handle_mouse_moved(event->motion.which, event->motion.x, event->motion.y);
549 break;
547 case SDL_QUIT: 550 case SDL_QUIT:
548 puts(""); 551 puts("");
549 exit(0); 552 exit(0);
550 } 553 }
551 return 0; 554 return 0;