[Scummvm-tracker] [ScummVM :: Bugs] #12032: cursor drifting for game controller

ScummVM :: Bugs trac at scummvm.org
Thu Dec 31 10:48:14 UTC 2020


#12032: cursor drifting for game controller
--------------------------+-----------------------
Reporter:  beaumanvienna  |      Owner:  (none)
    Type:  defect         |     Status:  new
Priority:  normal         |  Component:  --Unset--
Keywords:                 |       Game:
--------------------------+-----------------------
 scummvm version: upstream
 where: main screen

 This is fixing the issue for me: backends/events/sdl/sdl-events.cpp

 bool SdlEventSource::handleJoyAxisMotion(SDL_Event &ev, Common::Event
 &event) {
   event.type = Common::EVENT_JOYAXIS_MOTION;
   event.joystick.axis = ev.jaxis.axis;

   if (abs(ev.jaxis.value) > 4000)
     event.joystick.position = ev.jaxis.value >> 1;
   else
     event.joystick.position = 0;

   return true;
 }
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/12032>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list