mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
Fix key mapping defaults on nVidia Shield TV
This commit is contained in:
1 parent
8c2ade07a1
commit
5dc6e96168
1 file changed
+2
-1
+2
-1
@@ -178,6 +178,7 @@ static const DefMappingStruct defaultShieldKeyMap[] = {
|
||||
{CTRL_RIGHT, JOYSTICK_AXIS_HAT_X, +1},
|
||||
{CTRL_UP, JOYSTICK_AXIS_HAT_Y, -1},
|
||||
{CTRL_DOWN, JOYSTICK_AXIS_HAT_Y, +1},
|
||||
{VIRTKEY_SPEED_TOGGLE, JOYSTICK_AXIS_LTRIGGER, +1 },
|
||||
{VIRTKEY_UNTHROTTLE, JOYSTICK_AXIS_RTRIGGER, +1 },
|
||||
{VIRTKEY_PAUSE, NKCODE_BACK },
|
||||
};
|
||||
@@ -865,7 +866,7 @@ void RestoreDefault() {
|
||||
#elif defined(ANDROID)
|
||||
// Autodetect a few common devices
|
||||
std::string name = System_GetProperty(SYSPROP_NAME);
|
||||
if (IsNvidiaShield(name)) {
|
||||
if (IsNvidiaShield(name) || IsNvidiaShieldTV(name)) {
|
||||
SetDefaultKeyMap(DEFAULT_MAPPING_SHIELD, true);
|
||||
} else if (IsOuya(name)) { // TODO: check!
|
||||
SetDefaultKeyMap(DEFAULT_MAPPING_OUYA, true);
|
||||
|
||||
Reference in new issue
Block a user