Index: Source/modules/gamepad/GamepadDispatcher.cpp |
diff --git a/Source/modules/gamepad/GamepadDispatcher.cpp b/Source/modules/gamepad/GamepadDispatcher.cpp |
index 1dd3f2e381f4ffb6b22520e4e45aa94fa3d9a3a0..0dea444b7a4a5785e900a1d629fcb3e1441d0efa 100644 |
--- a/Source/modules/gamepad/GamepadDispatcher.cpp |
+++ b/Source/modules/gamepad/GamepadDispatcher.cpp |
@@ -52,12 +52,12 @@ void GamepadDispatcher::dispatchDidConnectOrDisconnectGamepad(unsigned index, co |
void GamepadDispatcher::startListening() |
{ |
- blink::Platform::current()->setGamepadListener(this); |
+ blink::Platform::current()->startListening(WebPlatformEventGamepad, this); |
} |
void GamepadDispatcher::stopListening() |
{ |
- blink::Platform::current()->setGamepadListener(0); |
+ blink::Platform::current()->stopListening(WebPlatformEventGamepad); |
} |
} // namespace blink |