declare event of type mouse motion on joystick axis movement
svn-id: r6535
This commit is contained in:
parent
324e2cb2e8
commit
c1930e0ff5
1 changed files with 3 additions and 1 deletions
|
@ -666,7 +666,9 @@ bool OSystem_SDL_Common::poll_event(Event *event) {
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case SDL_JOYAXISMOTION:
|
case SDL_JOYAXISMOTION:
|
||||||
if ( ev.jaxis.axis == 0) {
|
event->event_code = EVENT_MOUSEMOVE;
|
||||||
|
|
||||||
|
if ( ev.jaxis.axis == 0) {
|
||||||
if (ev.jaxis.value < -3200) { // left
|
if (ev.jaxis.value < -3200) { // left
|
||||||
km.x_vel = -1;
|
km.x_vel = -1;
|
||||||
km.x_down_count = 1;
|
km.x_down_count = 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue