#ttp 338022 TappyChicken: Android: Add back button

Added 'Android Back' for specific back button support in Android.
Tested via adding a temp node to Tappy Chicken to make sure it works as expected; which it does.

[CL 2191729 by Robert Jones in Main branch]
This commit is contained in:
Robert Jones
2014-07-11 10:29:51 -04:00
committed by UnrealBot
parent 831e3ac10a
commit 229955303b
3 changed files with 9 additions and 0 deletions
@@ -389,6 +389,8 @@ struct INPUTCORE_API EKeys
static const FKey Global_Play;
static const FKey Global_Back;
static const FKey Android_Back;
static const FKey Invalid;
static const int32 NUM_TOUCH_KEYS = 10;
@@ -216,6 +216,8 @@ const FKey EKeys::Global_Pause("Global_Pause");
const FKey EKeys::Global_Play("Global_Play");
const FKey EKeys::Global_Back("Global_Back");
const FKey EKeys::Android_Back("Android_Back");
const FKey EKeys::Invalid(NAME_None);
bool EKeys::bInitialized = false;
@@ -433,6 +435,8 @@ void EKeys::Initialize()
AddKey(FKeyDetails(EKeys::Global_Play, LOCTEXT("Global_Play", "Global Play"), FKeyDetails::GamepadKey));
AddKey(FKeyDetails(EKeys::Global_Back, LOCTEXT("Global_Back", "Global Back"), FKeyDetails::GamepadKey));
AddKey(FKeyDetails(EKeys::Android_Back, LOCTEXT("Android_Back", "Android Back"), FKeyDetails::GamepadKey));
// Initialize the input key manager. This will cause any additional OEM keys to get added
FInputKeyManager::Get();
}