diff --git a/dom/events/EventNameList.h b/dom/events/EventNameList.h index 7651fb75a740..1da280e27fc8 100644 --- a/dom/events/EventNameList.h +++ b/dom/events/EventNameList.h @@ -821,7 +821,7 @@ NON_IDL_EVENT(gamepadbuttondown, EventNameType_None, eBasicEventClass) NON_IDL_EVENT(gamepadbuttonup, - NS_GAMEPAD_BUTTONUP, + eGamepadButtonUp, EventNameType_None, eBasicEventClass) NON_IDL_EVENT(gamepadaxismove, diff --git a/widget/EventMessageList.h b/widget/EventMessageList.h index 1be9538c23f4..721e5982e817 100644 --- a/widget/EventMessageList.h +++ b/widget/EventMessageList.h @@ -416,7 +416,7 @@ NS_EVENT_MESSAGE(NS_SPEAKERMANAGER_SPEAKERFORCEDCHANGE, NS_SPEAKERMANAGER_EVENT_ // Gamepad input events NS_EVENT_MESSAGE(NS_GAMEPAD_START, 6000) NS_EVENT_MESSAGE(eGamepadButtonDown, NS_GAMEPAD_START) -NS_EVENT_MESSAGE(NS_GAMEPAD_BUTTONUP, NS_GAMEPAD_START + 1) +NS_EVENT_MESSAGE(eGamepadButtonUp, NS_GAMEPAD_START + 1) NS_EVENT_MESSAGE(NS_GAMEPAD_AXISMOVE, NS_GAMEPAD_START + 2) NS_EVENT_MESSAGE(eGamepadConnected, NS_GAMEPAD_START + 3) NS_EVENT_MESSAGE(eGamepadDisconnected, NS_GAMEPAD_START + 4)