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. |