You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.0 Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2020-03-26 20:49:42 +0000, Ryan C. Gordon wrote:
In SDL_PrivateJoystickRemoved(), we should generate fake input events for any buttons that were still pressed down and center any axes before sending the SDL_JOYDEVICEREMOVED event.
This allows an app that doesn't handle hotplugging to at least not assume the player is pressing down the fire button forever if they yank out the USB cable suddenly.
--ryan.
On 2020-03-26 20:50:21 +0000, Ryan C. Gordon wrote:
Gonna assign this to myself in case this is quick to implement right now.
--ryan.
On 2020-03-26 20:56:06 +0000, Ryan C. Gordon wrote:
Oh, it turns out we already do this (grep for "force_recentering") but we send these recentering events after SDL_JOYDEVICEREMOVED, which is a problem in the opposite direction; if you handle hotplugging, you probably closed the joystick by the time these would show up.
Going to move the force_recentering code to a separate function, so the removal code can call it directly.
Also, force_recentering is only set in one other place (DARWIN_JoystickUpdate), and for the same reason: device removal. We should probably clean that out eventually too.
--ryan.
On 2020-03-26 22:50:04 +0000, Ryan C. Gordon wrote:
This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.0
Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2020-03-26 20:49:42 +0000, Ryan C. Gordon wrote:
On 2020-03-26 20:50:21 +0000, Ryan C. Gordon wrote:
On 2020-03-26 20:56:06 +0000, Ryan C. Gordon wrote:
On 2020-03-26 22:50:04 +0000, Ryan C. Gordon wrote:
The text was updated successfully, but these errors were encountered: