1 {{+bindTo:partials.standard_nacl_article}}
2 <h1>PP_GamepadSampleData Struct Reference</h1>
4 <!-- Generated by Doxygen 1.7.6.1 -->
10 <!-- doxytag: class="PP_GamepadSampleData" --><h2>
11 Data Fields</h2><table class="memberdecls">
13 <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>
14 <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>
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#ae58bc687fc618e4a957dda7cd087bd58">buttons_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#ac9b7def0b695e6009e685b79d883a9a2">buttons</a> [32]</td></tr>
17 <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>
18 <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>
19 <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>
20 <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>
22 <hr /><a name="details" id="details"></a><h2>Detailed Description</h2>
23 <div class="textblock"><p>The data for one gamepad device. </p>
24 </div><hr /><h2>Field Documentation</h2>
25 <a class="anchor" id="a044a97b221c1e87e26ecbd39b584b416"></a><!-- doxytag: member="PP_GamepadSampleData::axes" ref="a044a97b221c1e87e26ecbd39b584b416" args="[16]" -->
27 <div class="memproto">
28 <table class="memname">
30 <td class="memname">float <a class="el" href="struct_p_p___gamepad_sample_data.html#a044a97b221c1e87e26ecbd39b584b416">PP_GamepadSampleData::axes</a>[16]</td>
35 <p>Normalized values for the axes, indices valid up to |axes_length|-1. </p>
36 <p>Axis values range from -1..1, and are in order of "importance". </p>
39 <a class="anchor" id="a27e25af2c4d7278951c71d5a71821db5"></a><!-- doxytag: member="PP_GamepadSampleData::axes_length" ref="a27e25af2c4d7278951c71d5a71821db5" args="" -->
41 <div class="memproto">
42 <table class="memname">
44 <td class="memname">uint32_t <a class="el" href="struct_p_p___gamepad_sample_data.html#a27e25af2c4d7278951c71d5a71821db5">PP_GamepadSampleData::axes_length</a></td>
49 <p>Number of valid elements in the |axes| array. </p>
52 <a class="anchor" id="ac9b7def0b695e6009e685b79d883a9a2"></a><!-- doxytag: member="PP_GamepadSampleData::buttons" ref="ac9b7def0b695e6009e685b79d883a9a2" args="[32]" -->
54 <div class="memproto">
55 <table class="memname">
57 <td class="memname">float <a class="el" href="struct_p_p___gamepad_sample_data.html#ac9b7def0b695e6009e685b79d883a9a2">PP_GamepadSampleData::buttons</a>[32]</td>
62 <p>Normalized values for the buttons, indices valid up to |buttons_length|. </p>
64 <li>1. Button values range from 0..1, and are in order of importance. </li>
68 <a class="anchor" id="ae58bc687fc618e4a957dda7cd087bd58"></a><!-- doxytag: member="PP_GamepadSampleData::buttons_length" ref="ae58bc687fc618e4a957dda7cd087bd58" args="" -->
70 <div class="memproto">
71 <table class="memname">
73 <td class="memname">uint32_t <a class="el" href="struct_p_p___gamepad_sample_data.html#ae58bc687fc618e4a957dda7cd087bd58">PP_GamepadSampleData::buttons_length</a></td>
78 <p>Number of valid elements in the |buttons| array. </p>
81 <a class="anchor" id="ae955efce5fcd9de08ab8d4c7f52d0af7"></a><!-- doxytag: member="PP_GamepadSampleData::connected" ref="ae955efce5fcd9de08ab8d4c7f52d0af7" args="" -->
83 <div class="memproto">
84 <table class="memname">
86 <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>
91 <p>Is there a gamepad connected at this index? If this is false, no other data in this structure is valid. </p>
94 <a class="anchor" id="a0a4d0498f6beecb54628a4f1919c48e3"></a><!-- doxytag: member="PP_GamepadSampleData::id" ref="a0a4d0498f6beecb54628a4f1919c48e3" args="[128]" -->
96 <div class="memproto">
97 <table class="memname">
99 <td class="memname">uint16_t <a class="el" href="struct_p_p___gamepad_sample_data.html#a0a4d0498f6beecb54628a4f1919c48e3">PP_GamepadSampleData::id</a>[128]</td>
104 <p>Identifier for the type of device/manufacturer. </p>
107 <a class="anchor" id="af832f6af0964f9023d712712a6e3afc7"></a><!-- doxytag: member="PP_GamepadSampleData::timestamp" ref="af832f6af0964f9023d712712a6e3afc7" args="" -->
108 <div class="memitem">
109 <div class="memproto">
110 <table class="memname">
112 <td class="memname">double <a class="el" href="struct_p_p___gamepad_sample_data.html#af832f6af0964f9023d712712a6e3afc7">PP_GamepadSampleData::timestamp</a></td>
117 <p>Monotonically increasing value that is incremented when the data have been updated. </p>
120 <a class="anchor" id="aad71d81059bd5880ebd79bc3b9e55cd5"></a><!-- doxytag: member="PP_GamepadSampleData::unused_pad_" ref="aad71d81059bd5880ebd79bc3b9e55cd5" args="[4]" -->
121 <div class="memitem">
122 <div class="memproto">
123 <table class="memname">
125 <td class="memname">char <a class="el" href="struct_p_p___gamepad_sample_data.html#aad71d81059bd5880ebd79bc3b9e55cd5">PP_GamepadSampleData::unused_pad_</a>[4]</td>
132 <hr />The documentation for this struct was generated from the following file:<ul>
133 <li><a class="el" href="ppb__gamepad_8h.html">ppb_gamepad.h</a></li>
135 </div><!-- contents -->
136 {{/partials.standard_nacl_article}}