MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ui_DoWindowFocus

Function ui_DoWindowFocus

ui/UISystem.cpp:417–424  ·  view source on GitHub ↗

Procedure to find which window should gain focus in the first check what window contains mouse pointer and save that window check if keystroke, then adjust focus and save as current focus else set current focus = saved mouse focus.

Source from the content-addressed store, hash-verified

415// else
416// set current focus = saved mouse focus.
417void ui_DoWindowFocus() {
418 // right now, the topmost window always has focus!
419 tUIWindowNode *wndnode = UIWindowTail;
420 if (wndnode)
421 UIWindowFocus = wndnode->wnd;
422 else
423 UIWindowFocus = NULL;
424}
425// returns a result and processes input of a window in focus
426int ui_ProcessFocusedWindow() {
427 int res = -1;

Callers 1

ui_DoFrameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected