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

Unified Diff: ppapi/shared_impl/ppb_gamepad_shared.h

Issue 280713004: Update Gamepad API to match the latest specification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« build/common.gypi ('K') | « ppapi/c/ppb_gamepad.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_gamepad_shared.h
diff --git a/ppapi/shared_impl/ppb_gamepad_shared.h b/ppapi/shared_impl/ppb_gamepad_shared.h
index c6f535d3d14ecb97f9455624f3a468afc66104f2..22b4df7a7be1477f698feb0f6c826904c4c571ef 100644
--- a/ppapi/shared_impl/ppb_gamepad_shared.h
+++ b/ppapi/shared_impl/ppb_gamepad_shared.h
@@ -19,7 +19,7 @@ namespace ppapi {
struct WebKitGamepadButton {
bool pressed;
- float value;
+ double value;
};
// This must match the definition of blink::Gamepad. The GamepadHost unit test
@@ -44,7 +44,7 @@ struct WebKitGamepad {
unsigned axes_length;
// Normalized values representing axes, in the range [-1..1].
- float axes[kAxesLengthCap];
+ double axes[kAxesLengthCap];
// Number of valid entries in the buttons array.
unsigned buttons_length;
« build/common.gypi ('K') | « ppapi/c/ppb_gamepad.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698