1 {{+bindTo:partials.standard_nacl_article}}
2 <h1>PP_GamepadSampleData Struct Reference</h1>
4 {{- dummy div to appease doxygen -}}
6 <!-- Generated by Doxygen 1.7.6.1 -->
11 <div class="contents">
12 <!-- doxytag: class="PP_GamepadSampleData" --><h2>
13 Data Fields</h2><table class="memberdecls">
15 <tr><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___gamepad_sample_data.html#a27e25af2c4d7278951c71d5a71821db5">axes_length</a></td></tr>
16 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___gamepad_sample_data.html#a044a97b221c1e87e26ecbd39b584b416">axes</a> [16]</td></tr>
17 <tr><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___gamepad_sample_data.html#ae58bc687fc618e4a957dda7cd087bd58">buttons_length</a></td></tr>
18 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___gamepad_sample_data.html#ac9b7def0b695e6009e685b79d883a9a2">buttons</a> [32]</td></tr>
19 <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___gamepad_sample_data.html#af832f6af0964f9023d712712a6e3afc7">timestamp</a></td></tr>
20 <tr><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___gamepad_sample_data.html#a0a4d0498f6beecb54628a4f1919c48e3">id</a> [128]</td></tr>
21 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___enums.html#ga4f272d99be14aacafe08dfd4ef830918">PP_Bool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___gamepad_sample_data.html#ae955efce5fcd9de08ab8d4c7f52d0af7">connected</a></td></tr>
22 <tr><td class="memItemLeft" align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___gamepad_sample_data.html#aad71d81059bd5880ebd79bc3b9e55cd5">unused_pad_</a> [4]</td></tr>
24 <hr /><a name="details" id="details"></a><h2>Detailed Description</h2>
25 <div class="textblock"><p>The data for one gamepad device. </p>
26 </div><hr /><h2>Field Documentation</h2>
27 <a class="anchor" id="a044a97b221c1e87e26ecbd39b584b416"></a><!-- doxytag: member="PP_GamepadSampleData::axes" ref="a044a97b221c1e87e26ecbd39b584b416" args="[16]" -->
29 <div class="memproto">
30 <table class="memname">
32 <td class="memname">float <a class="el" href="struct_p_p___gamepad_sample_data.html#a044a97b221c1e87e26ecbd39b584b416">PP_GamepadSampleData::axes</a>[16]</td>
37 <p>Normalized values for the axes, indices valid up to |axes_length|-1. </p>
38 <p>Axis values range from -1..1, and are in order of "importance". </p>
41 <a class="anchor" id="a27e25af2c4d7278951c71d5a71821db5"></a><!-- doxytag: member="PP_GamepadSampleData::axes_length" ref="a27e25af2c4d7278951c71d5a71821db5" args="" -->
43 <div class="memproto">
44 <table class="memname">
46 <td class="memname">uint32_t <a class="el" href="struct_p_p___gamepad_sample_data.html#a27e25af2c4d7278951c71d5a71821db5">PP_GamepadSampleData::axes_length</a></td>
51 <p>Number of valid elements in the |axes| array. </p>
54 <a class="anchor" id="ac9b7def0b695e6009e685b79d883a9a2"></a><!-- doxytag: member="PP_GamepadSampleData::buttons" ref="ac9b7def0b695e6009e685b79d883a9a2" args="[32]" -->
56 <div class="memproto">
57 <table class="memname">
59 <td class="memname">float <a class="el" href="struct_p_p___gamepad_sample_data.html#ac9b7def0b695e6009e685b79d883a9a2">PP_GamepadSampleData::buttons</a>[32]</td>
64 <p>Normalized values for the buttons, indices valid up to |buttons_length|. </p>
66 <li>1. Button values range from 0..1, and are in order of importance. </li>
70 <a class="anchor" id="ae58bc687fc618e4a957dda7cd087bd58"></a><!-- doxytag: member="PP_GamepadSampleData::buttons_length" ref="ae58bc687fc618e4a957dda7cd087bd58" args="" -->
72 <div class="memproto">
73 <table class="memname">
75 <td class="memname">uint32_t <a class="el" href="struct_p_p___gamepad_sample_data.html#ae58bc687fc618e4a957dda7cd087bd58">PP_GamepadSampleData::buttons_length</a></td>
80 <p>Number of valid elements in the |buttons| array. </p>
83 <a class="anchor" id="ae955efce5fcd9de08ab8d4c7f52d0af7"></a><!-- doxytag: member="PP_GamepadSampleData::connected" ref="ae955efce5fcd9de08ab8d4c7f52d0af7" args="" -->
85 <div class="memproto">
86 <table class="memname">
88 <td class="memname"><a class="el" href="group___enums.html#ga4f272d99be14aacafe08dfd4ef830918">PP_Bool</a> <a class="el" href="struct_p_p___gamepad_sample_data.html#ae955efce5fcd9de08ab8d4c7f52d0af7">PP_GamepadSampleData::connected</a></td>
93 <p>Is there a gamepad connected at this index? If this is false, no other data in this structure is valid. </p>
96 <a class="anchor" id="a0a4d0498f6beecb54628a4f1919c48e3"></a><!-- doxytag: member="PP_GamepadSampleData::id" ref="a0a4d0498f6beecb54628a4f1919c48e3" args="[128]" -->
98 <div class="memproto">
99 <table class="memname">
101 <td class="memname">uint16_t <a class="el" href="struct_p_p___gamepad_sample_data.html#a0a4d0498f6beecb54628a4f1919c48e3">PP_GamepadSampleData::id</a>[128]</td>
106 <p>Identifier for the type of device/manufacturer. </p>
109 <a class="anchor" id="af832f6af0964f9023d712712a6e3afc7"></a><!-- doxytag: member="PP_GamepadSampleData::timestamp" ref="af832f6af0964f9023d712712a6e3afc7" args="" -->
110 <div class="memitem">
111 <div class="memproto">
112 <table class="memname">
114 <td class="memname">double <a class="el" href="struct_p_p___gamepad_sample_data.html#af832f6af0964f9023d712712a6e3afc7">PP_GamepadSampleData::timestamp</a></td>
119 <p>Monotonically increasing value that is incremented when the data have been updated. </p>
122 <a class="anchor" id="aad71d81059bd5880ebd79bc3b9e55cd5"></a><!-- doxytag: member="PP_GamepadSampleData::unused_pad_" ref="aad71d81059bd5880ebd79bc3b9e55cd5" args="[4]" -->
123 <div class="memitem">
124 <div class="memproto">
125 <table class="memname">
127 <td class="memname">char <a class="el" href="struct_p_p___gamepad_sample_data.html#aad71d81059bd5880ebd79bc3b9e55cd5">PP_GamepadSampleData::unused_pad_</a>[4]</td>
134 <hr />The documentation for this struct was generated from the following file:<ul>
135 <li><a class="el" href="ppb__gamepad_8h.html">ppb_gamepad.h</a></li>
137 </div><!-- contents -->
139 {{/partials.standard_nacl_article}}