mirror of https://github.com/stella-emu/stella.git
![]() is now fully navigable via the keyboard be means of 'tab-like' functionality. This means that eventually systems without a keyboard will also be able to navigate the interface without resorting to the buggy joymouse code (which is soon to be removed). Laid the infrastructure for remapping GUI events, whereby (for example) a widget checks for Event::UISelect for 'doing its thing', vs. looking at the Enter/Return key. So widgets now respond to events, and events can (eventually) be remapped to *any* device. Currently, these UI events are as follows: UIUp, UIDown, UILeft, UIRight, UIHome, UIEnd, UIPgUp, UIPgDown, UIPrevDir, UINavNext, UINavPrev, UITabNext, UITabPrev, UISelect At present, they're hardcoded to key events only, so pressing 'Return' will send a UISelect, cursor up a UIUp, etc. When the remapping code is complete, *any* input will be able to send these events, and that remapping will be distinct from emulation mode. So, for example, cursor up in GUI mode might generate a UIUp event, but in emulation mode might generate a left joystick up event. Modified 'tab' key while in emulation mode to only enter the options menu. Once inside the menu, the tab key acts as navigation between elements, and exiting the options menu requires navigating to the 'Exit menu' button. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1100 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba |
||
---|---|---|
CVSROOT | ||
stella |