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

Unified Diff: ppapi/api/ppb_gamepad.idl

Issue 280713004: Update Gamepad API to match the latest specification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Version the IDL 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
« no previous file with comments | « build/common.gypi ('k') | ppapi/c/ppb_gamepad.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/ppb_gamepad.idl
diff --git a/ppapi/api/ppb_gamepad.idl b/ppapi/api/ppb_gamepad.idl
index 1552fd67d7101881800ae992b129e086b1aaa6e6..ea742b6444b12723236beda387f1b0f21fe53bfd 100644
--- a/ppapi/api/ppb_gamepad.idl
+++ b/ppapi/api/ppb_gamepad.idl
@@ -11,13 +11,14 @@
[generate_thunk]
label Chrome {
- M19 = 1.0
+ M19 = 1.0,
+ M36 = 1.1
};
/**
* The data for one gamepad device.
*/
-[assert_size(472)]
+[assert_size(672)]
struct PP_GamepadSampleData {
/**
* Number of valid elements in the |axes| array.
@@ -28,9 +29,17 @@ 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".
*/
+ [version = 1.0]
float_t[16] axes;
/**
+ * Normalized values for the axes, indices valid up to |axes_length|-1. Axis
+ * values range from -1..1, and are in order of "importance".
+ */
+ [version = 1.1]
+ double_t[16] axes;
+
+ /**
* Number of valid elements in the |buttons| array.
*/
uint32_t buttons_length;
@@ -39,9 +48,17 @@ 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.
*/
+ [version = 1.0]
float_t[32] buttons;
/**
+ * Normalized values for the buttons, indices valid up to |buttons_length|
+ * - 1. Button values range from 0..1, and are in order of importance.
+ */
+ [version = 1.1]
+ double_t[32] buttons;
+
+ /**
* Monotonically increasing value that is incremented when the data have
* been updated.
*/
@@ -65,7 +82,7 @@ struct PP_GamepadSampleData {
/**
* The data for all gamepads connected to the system.
*/
-[assert_size(1896)]
+[assert_size(2696)]
struct PP_GamepadsSampleData {
/**
* Number of valid elements in the |items| array.
« no previous file with comments | « build/common.gypi ('k') | ppapi/c/ppb_gamepad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698