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

ScummVM :: Bugs trac at scummvm.org
Sun Jun 19 15:40:28 UTC 2022


#12032: BACKENDS: SDL: cursor drifting for game controller
--------------------------+------------------------
Reporter:  beaumanvienna  |       Owner:  (none)
    Type:  defect         |      Status:  new
Priority:  high           |   Component:  --Other--
 Version:                 |  Resolution:
Keywords:                 |        Game:
--------------------------+------------------------
Comment (by digitall):

 I think reading this code that it is implementing a fixed "deadband" for
 the joystick axis to prevent small zero offsets on the hardware causing
 drifts.

 This would be applied at
 https://github.com/scummvm/scummvm/blob/master/backends/events/sdl/sdl-
 events.cpp#L823

 However, I think that this is very hardware dependent and if this is
 implemented, it will be necessary to allow the deadband to be configured
 between 0 i.e. disabled and up to say around 4000. It is also usual to
 offset the deadband to avoid the startup jerk i.e. sudden 0 to 4000
 transition with current code.

 P.S. Had to do this kind of code for my "day job" a fair bit..
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/12032#comment:5>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list