SDL_GetKeyState is called from mouse event handlers
Bug #535995 reported by
Sigra
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Won't Fix
|
Low
|
Unassigned |
Bug Description
SDL_GetKeyState is called (via bool WLApplication:
Changed in widelands: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in widelands: | |
assignee: | SirVer (sirver) → nobody |
To post a comment you must log in.
Logged In: YES
user_id=211820
Originator: NO
Now that I thought about this some more, it's actually totally incorrect for us to call SDL_GetKeyState at any time, because it breaks the record/playback system.
So we should probably just maintain our own key state array which does the right thing. (Alternatively, the behaviour of calling SDL_GetKeyState could be fixed wrt record/playback by intercepting those calls like we do in get_time())