mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 04:08:37 +01:00
Keep track of focus position
This commit is contained in:
1 parent
f9f893f3fc
commit
ecab31ef8b
4 files changed
+33
-15
No files matched your search
@@ -191,6 +191,13 @@ void ScreenManager::render() {
|
||||
processFinishDialog();
|
||||
}
|
||||
|
||||
void ScreenManager::getFocusPosition(float &x, float &y, float &z) {
|
||||
UI::View *v = UI::GetFocusedView();
|
||||
x = v ? v->GetBounds().x : 0;
|
||||
y = v ? v->GetBounds().y : 0;
|
||||
z = stack_.size();
|
||||
}
|
||||
|
||||
void ScreenManager::sendMessage(const char *msg, const char *value) {
|
||||
if (!strcmp(msg, "recreateviews"))
|
||||
RecreateAllViews();
|
||||
|
||||
Reference in new issue
Block a user