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 /* From ppb_gamepad.idl modified Thu Mar 1 11:41:21 2012. */ | 6 /* From ppb_gamepad.idl modified Tue Apr 16 09:04:34 2013. */ |
7 | 7 |
8 #ifndef PPAPI_C_PPB_GAMEPAD_H_ | 8 #ifndef PPAPI_C_PPB_GAMEPAD_H_ |
9 #define PPAPI_C_PPB_GAMEPAD_H_ | 9 #define PPAPI_C_PPB_GAMEPAD_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
14 #include "ppapi/c/pp_stdint.h" | 14 #include "ppapi/c/pp_stdint.h" |
15 | 15 |
16 #define PPB_GAMEPAD_INTERFACE_1_0 "PPB_Gamepad;1.0" | 16 #define PPB_GAMEPAD_INTERFACE_1_0 "PPB_Gamepad;1.0" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 /** | 91 /** |
92 * @addtogroup Interfaces | 92 * @addtogroup Interfaces |
93 * @{ | 93 * @{ |
94 */ | 94 */ |
95 /** | 95 /** |
96 * The <code>PPB_Gamepad</code> interface allows retrieving data from | 96 * The <code>PPB_Gamepad</code> interface allows retrieving data from |
97 * gamepad/joystick devices that are connected to the system. | 97 * gamepad/joystick devices that are connected to the system. |
98 */ | 98 */ |
99 struct PPB_Gamepad_1_0 { | 99 struct PPB_Gamepad_1_0 { |
100 /** | 100 /** |
101 * Samples the current state of the connected gamepads. | 101 * Samples the current state of the available gamepads. |
102 */ | 102 */ |
103 void (*Sample)(PP_Instance instance, struct PP_GamepadsSampleData* data); | 103 void (*Sample)(PP_Instance instance, struct PP_GamepadsSampleData* data); |
104 }; | 104 }; |
105 | 105 |
106 typedef struct PPB_Gamepad_1_0 PPB_Gamepad; | 106 typedef struct PPB_Gamepad_1_0 PPB_Gamepad; |
107 /** | 107 /** |
108 * @} | 108 * @} |
109 */ | 109 */ |
110 | 110 |
111 #endif /* PPAPI_C_PPB_GAMEPAD_H_ */ | 111 #endif /* PPAPI_C_PPB_GAMEPAD_H_ */ |
112 | 112 |
OLD | NEW |