Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: content/common/gamepad_user_gesture.cc

Issue 165983005: Updating Gamepad API to match latest spec (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed typo in GamepadProviderTest Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gamepad_user_gesture.cc
diff --git a/content/common/gamepad_user_gesture.cc b/content/common/gamepad_user_gesture.cc
index 7b530b1ecf4049cb9c3bdc7aa4200bab3ab1244d..649b5ca90fc4b2c7bc3b061e1749286655448a62 100644
--- a/content/common/gamepad_user_gesture.cc
+++ b/content/common/gamepad_user_gesture.cc
@@ -22,7 +22,7 @@ bool GamepadsHaveUserGesture(const blink::WebGamepads& gamepads) {
kPrimaryInteractionButtons);
for (unsigned button_index = 0; button_index < buttons_to_check;
button_index++) {
- if (pad.buttons[button_index] > 0.5f)
+ if (pad.buttons[button_index].pressed)
return true;
}
}
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698