Ticket #9665 (closed Feature Requests: Fixed)
Tidy up keypress handling
|Reported by:||jhsrennie||Owned by:||jhsrennie|
|Priority:||1 - Lowest||Milestone:||11.0 "Eden"|
|Component:||Keymapping (Remote Control / Gamepad Controller)||Version:||GIT|
The current keypress handling is untidy because the g_Keyboard object is used in places like CApplication::OnKey. It would be tidier for all the information needed by OnKey to be passed in the CKey argument.
The changes in the patch extend the CKey object with extra member variables for e.g. the key modifier state. A new method CKeyboardStat::GetKey is added that returns a CKey with all the information needed to process the keystroke so no further reference to g_Keyboard need be made.
This is a first draft. It builds and works but has not been thoroughly tested. The aim of this ticket is to solicit views whether it is worth continuing down this route.
comment:11 Changed 4 years ago by sho
- Component changed from Other (un-categorized) to Keymapping (Remote Control / Gamepad Controller)