comparison test/common.c @ 2154:5660f48b31f5

fixed code for printing mousewheel events to match the new format of mousewheel events.
author Bob Pendleton <bob@pendleton.com>
date Fri, 06 Jul 2007 15:45:28 +0000
parents db3ba6c0d0df
children 8f37b91f2e3e
comparison
equal deleted inserted replaced
2153:760c1bd2d625 2154:5660f48b31f5
823 fprintf(stderr, "Mouse %d: button %d released at %d,%d in window %d", 823 fprintf(stderr, "Mouse %d: button %d released at %d,%d in window %d",
824 event->button.which, event->button.button, event->button.x, 824 event->button.which, event->button.button, event->button.x,
825 event->button.y, event->button.windowID); 825 event->button.y, event->button.windowID);
826 break; 826 break;
827 case SDL_MOUSEWHEEL: 827 case SDL_MOUSEWHEEL:
828 fprintf(stderr, "Mouse %d: wheel scrolled %d in window %d", 828 fprintf(stderr, "Mouse %d: wheel scrolled %d in x and %d in y in window %d",
829 event->wheel.which, event->wheel.motion, 829 event->wheel.which, event->wheel.x, event->wheel.y,
830 event->wheel.windowID); 830 event->wheel.windowID);
831 break; 831 break;
832 case SDL_JOYBALLMOTION: 832 case SDL_JOYBALLMOTION:
833 fprintf(stderr, "Joystick %d: ball %d moved by %d,%d", 833 fprintf(stderr, "Joystick %d: ball %d moved by %d,%d",
834 event->jball.which, event->jball.ball, event->jball.xrel, 834 event->jball.which, event->jball.ball, event->jball.xrel,