mirror of
https://github.com/izzy2lost/ppsspp.git
synced 2026-03-10 12:43:04 -07:00
+2
-2
@@ -263,8 +263,8 @@ KeyEventResult UnsyncKeyEvent(const KeyInput &key, ViewGroup *root) {
|
||||
return retval;
|
||||
}
|
||||
|
||||
void KeyEvent(const KeyInput &key, ViewGroup *root) {
|
||||
root->Key(key);
|
||||
bool KeyEvent(const KeyInput &key, ViewGroup *root) {
|
||||
return root->Key(key);
|
||||
}
|
||||
|
||||
void TouchEvent(const TouchInput &touch, ViewGroup *root) {
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ enum class KeyEventResult {
|
||||
// Hooks arrow keys for navigation
|
||||
KeyEventResult UnsyncKeyEvent(const KeyInput &key, ViewGroup *root);
|
||||
|
||||
void KeyEvent(const KeyInput &key, ViewGroup *root);
|
||||
bool KeyEvent(const KeyInput &key, ViewGroup *root);
|
||||
void TouchEvent(const TouchInput &touch, ViewGroup *root);
|
||||
void AxisEvent(const AxisInput &axis, ViewGroup *root);
|
||||
|
||||
|
||||
@@ -74,8 +74,7 @@ void UIScreen::axis(const AxisInput &axis) {
|
||||
|
||||
bool UIScreen::key(const KeyInput &key) {
|
||||
if (!ignoreInput_ && root_) {
|
||||
UI::KeyEvent(key, root_);
|
||||
return false;
|
||||
return UI::KeyEvent(key, root_);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user