Opened 10 months ago

Last modified 2 months ago

#12032 new defect

BACKENDS: SDL: cursor drifting for game controller

Reported by: beaumanvienna Owned by:
Priority: high Component: --Unset--
Version: Keywords:
Cc: Game:

Description

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;

}

Change History (3)

comment:1 by sev-, 10 months ago

Summary: cursor drifting for game controllerSDL: cursor drifting for game controller

comment:2 by sev-, 10 months ago

Summary: SDL: cursor drifting for game controllerBACKENDS: SDL: cursor drifting for game controller

comment:3 by sev-, 2 months ago

Priority: normalhigh

This bug would be nice to get fixed before the release.

Note: See TracTickets for help on using tickets.