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

Unified Diff: ppapi/c/ppb_gamepad.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
Index: ppapi/c/ppb_gamepad.h
diff --git a/ppapi/c/ppb_gamepad.h b/ppapi/c/ppb_gamepad.h
index 4beb9b8f1f8599bdc5e720d47633670f16564d9f..3c36acec50dba6c4445531d1f1fe515975075835 100644
--- a/ppapi/c/ppb_gamepad.h
+++ b/ppapi/c/ppb_gamepad.h
@@ -39,7 +39,7 @@ struct PP_GamepadSampleData {
* Normalized values for the axes, indices valid up to |axes_length|-1. Axis
* values range from -1..1, and are in order of "importance".
*/
- float axes[16];
+ double axes[16];
/**
* Number of valid elements in the |buttons| array.
*/
@@ -48,7 +48,7 @@ struct PP_GamepadSampleData {
* Normalized values for the buttons, indices valid up to |buttons_length|
* - 1. Button values range from 0..1, and are in order of importance.
*/
- float buttons[32];
+ double buttons[32];
/**
* Monotonically increasing value that is incremented when the data have
* been updated.
@@ -66,7 +66,7 @@ struct PP_GamepadSampleData {
/* Padding to make the struct the same size between 64 and 32. */
char unused_pad_[4];
};
-PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_GamepadSampleData, 472);
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_GamepadSampleData, 672);
/**
* The data for all gamepads connected to the system.
@@ -83,7 +83,7 @@ struct PP_GamepadsSampleData {
*/
struct PP_GamepadSampleData items[4];
};
-PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_GamepadsSampleData, 1896);
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_GamepadsSampleData, 2696);
/**
* @}
*/

Powered by Google App Engine
This is Rietveld 408576698