MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / ui_last_element_focused

Function ui_last_element_focused

StereoKitC/ui/ui_core.cpp:783–790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

781///////////////////////////////////////////
782
783button_state_ ui_last_element_focused() {
784 // Because focus can change at any point during the frame, we'll check
785 // against the last two frame's focus ids, which are set in stone after the
786 // frame ends.
787 return button_make_state(
788 skui_hand[handed_left].focused_prev_prev == skui_last_element || skui_hand[handed_right].focused_prev_prev == skui_last_element,
789 skui_hand[handed_left].focused_prev == skui_last_element || skui_hand[handed_right].focused_prev == skui_last_element);
790}
791
792///////////////////////////////////////////
793

Callers 1

demo_ui_updateFunction · 0.85

Calls 1

button_make_stateFunction · 0.85

Tested by

no test coverage detected