UI: Fix crash on input with no screens.

This commit is contained in:
Unknown W. Brackets committed 2023-09-30 15:31:00 -07:00
1 parent aedd51f2f6
commit 847a87f164
1 file changed
+2
+2
View File
@@ -119,6 +119,8 @@ bool ScreenManager::key(const KeyInput &key) {
void ScreenManager::axis(const AxisInput *axes, size_t count) {
std::lock_guard<std::recursive_mutex> guard(inputLock_);
if (stack_.empty())
return;
stack_.back().screen->UnsyncAxis(axes, count);
}