declare event of type mouse motion on joystick axis movement

svn-id: r6535
This commit is contained in:
Jonathan Gray 2003-01-22 13:15:03 +00:00
parent 324e2cb2e8
commit c1930e0ff5

View file

@ -666,7 +666,9 @@ bool OSystem_SDL_Common::poll_event(Event *event) {
return true;
case SDL_JOYAXISMOTION:
if ( ev.jaxis.axis == 0) {
event->event_code = EVENT_MOUSEMOVE;
if ( ev.jaxis.axis == 0) {
if (ev.jaxis.value < -3200) { // left
km.x_vel = -1;
km.x_down_count = 1;