Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
ppb_gamepad.h
Go to the documentation of this file.
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
3  * found in the LICENSE file.
4  */
5 
6 /* From ppb_gamepad.idl modified Wed Nov 8 11:16:43 2017. */
7 
8 #ifndef PPAPI_C_PPB_GAMEPAD_H_
9 #define PPAPI_C_PPB_GAMEPAD_H_
10 
11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_stdint.h"
15 
16 #define PPB_GAMEPAD_INTERFACE_1_0 "PPB_Gamepad;1.0"
17 #define PPB_GAMEPAD_INTERFACE PPB_GAMEPAD_INTERFACE_1_0
18 
37  uint32_t axes_length;
42  float axes[16];
46  uint32_t buttons_length;
51  float buttons[32];
56  double timestamp;
60  uint16_t id[128];
66  /* Padding to make the struct the same size between 64 and 32. */
67  int8_t unused_pad_[4];
68 };
69 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_GamepadSampleData, 472);
70 
78  uint32_t length;
79  /* Padding to make the struct the same size between 64 and 32. */
80  int8_t unused_pad_[4];
85 };
86 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_GamepadsSampleData, 1896);
103  void (*Sample)(PP_Instance instance, struct PP_GamepadsSampleData* data);
104 };
105 
106 typedef struct PPB_Gamepad_1_0 PPB_Gamepad;
111 #endif /* PPAPI_C_PPB_GAMEPAD_H_ */
112 
float axes[16]
Definition: ppb_gamepad.h:42
uint32_t length
Definition: ppb_gamepad.h:78
double timestamp
Definition: ppb_gamepad.h:56
uint32_t buttons_length
Definition: ppb_gamepad.h:46
Definition: ppb_gamepad.h:99
float buttons[32]
Definition: ppb_gamepad.h:51
uint32_t axes_length
Definition: ppb_gamepad.h:37
Definition: ppb_gamepad.h:74
Definition: ppb_gamepad.h:33
void(* Sample)(PP_Instance instance, struct PP_GamepadsSampleData *data)
Definition: ppb_gamepad.h:103
int32_t PP_Instance
Definition: pp_instance.h:34
PP_Bool connected
Definition: ppb_gamepad.h:65
PP_Bool
Definition: pp_bool.h:30
struct PP_GamepadSampleData items[4]
Definition: ppb_gamepad.h:84