Index: content/shell/renderer/test_runner/gamepad_controller.cc |
diff --git a/content/shell/renderer/test_runner/gamepad_controller.cc b/content/shell/renderer/test_runner/gamepad_controller.cc |
index fa584438c2c5af1523d6c6f94a3a8ff340f76f95..576469d5f2157c7311b173ec428092d0cb7c2d91 100644 |
--- a/content/shell/renderer/test_runner/gamepad_controller.cc |
+++ b/content/shell/renderer/test_runner/gamepad_controller.cc |
@@ -197,7 +197,8 @@ void GamepadController::SetButtonData(int index, int button, double data) { |
return; |
if (button < 0 || button >= static_cast<int>(WebGamepad::buttonsLengthCap)) |
return; |
- gamepads_.items[index].buttons[button] = data; |
+ gamepads_.items[index].buttons[button].value = data; |
+ gamepads_.items[index].buttons[button].pressed = data > 0.1f; |
if (delegate_) |
delegate_->setGamepadData(gamepads_); |
} |