OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 /** | 6 /** |
7 * This file defines the <code>PPB_Gamepad</code> interface, which | 7 * This file defines the <code>PPB_Gamepad</code> interface, which |
8 * provides access to gamepad devices. | 8 * provides access to gamepad devices. |
9 */ | 9 */ |
10 | 10 |
| 11 [generate_thunk] |
| 12 |
11 label Chrome { | 13 label Chrome { |
12 M19 = 1.0 | 14 M19 = 1.0 |
13 }; | 15 }; |
14 | 16 |
15 /** | 17 /** |
16 * The data for one gamepad device. | 18 * The data for one gamepad device. |
17 */ | 19 */ |
18 [assert_size(472)] | 20 [assert_size(472)] |
19 struct PP_GamepadSampleData { | 21 struct PP_GamepadSampleData { |
20 /** | 22 /** |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 /** | 78 /** |
77 * Data for an individual gamepad device connected to the system. | 79 * Data for an individual gamepad device connected to the system. |
78 */ | 80 */ |
79 PP_GamepadSampleData[4] items; | 81 PP_GamepadSampleData[4] items; |
80 }; | 82 }; |
81 | 83 |
82 /** | 84 /** |
83 * The <code>PPB_Gamepad</code> interface allows retrieving data from | 85 * The <code>PPB_Gamepad</code> interface allows retrieving data from |
84 * gamepad/joystick devices that are connected to the system. | 86 * gamepad/joystick devices that are connected to the system. |
85 */ | 87 */ |
86 [version=1.0, macro="PPB_GAMEPAD_INTERFACE"] | 88 [version=1.0, macro="PPB_GAMEPAD_INTERFACE", singleton_resource] |
87 interface PPB_Gamepad { | 89 interface PPB_Gamepad { |
88 /** | 90 /** |
89 * Samples the current state of the connected gamepads. | 91 * Samples the current state of the connected gamepads. |
90 */ | 92 */ |
91 void Sample( | 93 void Sample( |
92 [in] PP_Instance instance, | 94 [in] PP_Instance instance, |
93 [out] PP_GamepadsSampleData data); | 95 [out] PP_GamepadsSampleData data); |
94 | |
95 }; | 96 }; |
OLD | NEW |