Native Client

PP_GamepadSampleData Struct Reference

The data for one gamepad device. More...


Detailed Description

The data for one gamepad device.

Data Fields List

uint32_t axes_length
float axes [16]
uint32_t buttons_length
float buttons [32]
double timestamp
uint16_t id [128]
PP_Bool connected
char unused_pad_ [4]

Data Fields Details

Normalized values for the axes, indices valid up to |axes_length|-1.

Axis values range from -1..1, and are in order of "importance".

Number of valid elements in the |axes| array.

Normalized values for the buttons, indices valid up to |buttons_length|.

  • 1. Button values range from 0..1, and are in order of importance.

Number of valid elements in the |buttons| array.

Is there a gamepad connected at this index? If this is false, no other data in this structure is valid.

uint16_t PP_GamepadSampleData::id[128]

Identifier for the type of device/manufacturer.

Monotonically increasing value that is incremented when the data have been updated.


The documentation for this struct was generated from the following file:

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.