We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4824

Summary: Wolf4SDL loses inputs when mouse grabbed
Product: sdl12-compat Reporter: Rohit Nirmal <rohitnirmal9>
Component: everythingAssignee: Ryan C. Gordon <icculus>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: x86_64   
OS: Linux   

Description Rohit Nirmal 2019-10-11 22:57:08 UTC
Wolf4SDL build from this git repo: https://github.com/mozzwald/wolf4sdl

When Wolf4SDL is run with sdl12-compat in the default fullscreen mode or with the --windowed-mouse command line option, using the Up and Down arrows in the menu does nothing (Enter and Escape work though). Additionally, the player is always moving during gameplay, even when the mouse and keyboard aren't used.

The problem seems to be related to the SDL_WM_GrabInput call made here: https://github.com/mozzwald/wolf4sdl/blob/master/id_in.cpp#L395

In normal SDL 1.2, moving the mouse up and down can move the menu cursor. I suspect sdl12-compat is somehow misreporting mouse movement when the mouse is grabbed.