diff --git a/dom/events/EventNameList.h b/dom/events/EventNameList.h index 0420d8da83e8..7651fb75a740 100644 --- a/dom/events/EventNameList.h +++ b/dom/events/EventNameList.h @@ -817,7 +817,7 @@ NON_IDL_EVENT(MozScrolledAreaChanged, #ifdef MOZ_GAMEPAD NON_IDL_EVENT(gamepadbuttondown, - NS_GAMEPAD_BUTTONDOWN, + eGamepadButtonDown, EventNameType_None, eBasicEventClass) NON_IDL_EVENT(gamepadbuttonup, diff --git a/widget/EventMessageList.h b/widget/EventMessageList.h index 7190fa32609a..1be9538c23f4 100644 --- a/widget/EventMessageList.h +++ b/widget/EventMessageList.h @@ -415,7 +415,7 @@ NS_EVENT_MESSAGE(NS_SPEAKERMANAGER_SPEAKERFORCEDCHANGE, NS_SPEAKERMANAGER_EVENT_ #ifdef MOZ_GAMEPAD // Gamepad input events NS_EVENT_MESSAGE(NS_GAMEPAD_START, 6000) -NS_EVENT_MESSAGE(NS_GAMEPAD_BUTTONDOWN, NS_GAMEPAD_START) +NS_EVENT_MESSAGE(eGamepadButtonDown, NS_GAMEPAD_START) NS_EVENT_MESSAGE(NS_GAMEPAD_BUTTONUP, NS_GAMEPAD_START + 1) NS_EVENT_MESSAGE(NS_GAMEPAD_AXISMOVE, NS_GAMEPAD_START + 2) NS_EVENT_MESSAGE(eGamepadConnected, NS_GAMEPAD_START + 3)