Index: third_party/WebKit/Source/modules/gamepad/Gamepad.cpp |
diff --git a/third_party/WebKit/Source/modules/gamepad/Gamepad.cpp b/third_party/WebKit/Source/modules/gamepad/Gamepad.cpp |
index 94766f0c5391b9623a2fa63332cbfde212a60e76..26b135aee9faf7242b201e3e3244d263cfd259f9 100644 |
--- a/third_party/WebKit/Source/modules/gamepad/Gamepad.cpp |
+++ b/third_party/WebKit/Source/modules/gamepad/Gamepad.cpp |
@@ -54,6 +54,7 @@ void Gamepad::setButtons(unsigned count, const WebGamepadButton* data) |
for (unsigned i = 0; i < count; ++i) { |
m_buttons[i]->setValue(data[i].value); |
m_buttons[i]->setPressed(data[i].pressed); |
+ m_buttons[i]->setTouched(data[i].touched || data[i].pressed || (data[i].value > 0.0f)); |
} |
} |