Bug 1014162 - Make Gamepad.mapping into an enum. r=smaug

This commit is contained in:
Ted Mielczarek
2014-05-23 07:39:13 -04:00
parent 15e4ca5e39
commit 0c8d982587
6 changed files with 14 additions and 18 deletions

View File

@@ -601,7 +601,7 @@ nsAppShell::ProcessNextNativeEvent(bool mayWait)
if (svc) {
if (curEvent->Action() == AndroidGeckoEvent::ACTION_GAMEPAD_ADDED) {
int svc_id = svc->AddGamepad("android",
mozilla::dom::StandardMapping,
mozilla::dom::GamepadMappingType::Standard,
mozilla::dom::kStandardGamepadButtons,
mozilla::dom::kStandardGamepadAxes);
mozilla::widget::android::GeckoAppShell::GamepadAdded(curEvent->ID(),