chromium/native_client_sdk/doc_generated/pepper_stable/c/struct_p_p___gamepad_sample_data.html

{{+bindTo:partials.standard_nacl_api}}
<h1>PP_GamepadSampleData Struct Reference</h1>
<div id="doxygen-ref">
{{- dummy div to appease doxygen -}}
  <div>
<!-- Generated by Doxygen 1.7.6.1 -->


</div>
<!--header-->
<div class="contents">
<!-- doxytag: class="PP_GamepadSampleData" --><h2>
Data Fields</h2><table class="memberdecls">

<tr><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___gamepad_sample_data.html#a27e25af2c4d7278951c71d5a71821db5">axes_length</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___gamepad_sample_data.html#a044a97b221c1e87e26ecbd39b584b416">axes</a> [16]</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___gamepad_sample_data.html#ae58bc687fc618e4a957dda7cd087bd58">buttons_length</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___gamepad_sample_data.html#ac9b7def0b695e6009e685b79d883a9a2">buttons</a> [32]</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___gamepad_sample_data.html#af832f6af0964f9023d712712a6e3afc7">timestamp</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___gamepad_sample_data.html#a0a4d0498f6beecb54628a4f1919c48e3">id</a> [128]</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___enums.html#ga4f272d99be14aacafe08dfd4ef830918">PP_Bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___gamepad_sample_data.html#ae955efce5fcd9de08ab8d4c7f52d0af7">connected</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___gamepad_sample_data.html#a6d8faab2471cbf6133481d7df6c53c3f">unused_pad_</a> [4]</td></tr>
</table>
<hr /><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The data for one gamepad device. </p>
</div><hr /><h2>Field Documentation</h2>
<a class="anchor" id="a044a97b221c1e87e26ecbd39b584b416"></a><!-- doxytag: member="PP_GamepadSampleData::axes" ref="a044a97b221c1e87e26ecbd39b584b416" args="[16]" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float <a class="el" href="struct_p_p___gamepad_sample_data.html#a044a97b221c1e87e26ecbd39b584b416">PP_GamepadSampleData::axes</a>[16]</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Normalized values for the axes, indices valid up to |axes_length|-1. </p>
<p>Axis values range from -1..1, and are in order of "importance". </p>
</div>
</div>
<a class="anchor" id="a27e25af2c4d7278951c71d5a71821db5"></a><!-- doxytag: member="PP_GamepadSampleData::axes_length" ref="a27e25af2c4d7278951c71d5a71821db5" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t <a class="el" href="struct_p_p___gamepad_sample_data.html#a27e25af2c4d7278951c71d5a71821db5">PP_GamepadSampleData::axes_length</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Number of valid elements in the |axes| array. </p>
</div>
</div>
<a class="anchor" id="ac9b7def0b695e6009e685b79d883a9a2"></a><!-- doxytag: member="PP_GamepadSampleData::buttons" ref="ac9b7def0b695e6009e685b79d883a9a2" args="[32]" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float <a class="el" href="struct_p_p___gamepad_sample_data.html#ac9b7def0b695e6009e685b79d883a9a2">PP_GamepadSampleData::buttons</a>[32]</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Normalized values for the buttons, indices valid up to |buttons_length|. </p>
<ul>
<li>1. Button values range from 0..1, and are in order of importance. </li>
</ul>
</div>
</div>
<a class="anchor" id="ae58bc687fc618e4a957dda7cd087bd58"></a><!-- doxytag: member="PP_GamepadSampleData::buttons_length" ref="ae58bc687fc618e4a957dda7cd087bd58" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t <a class="el" href="struct_p_p___gamepad_sample_data.html#ae58bc687fc618e4a957dda7cd087bd58">PP_GamepadSampleData::buttons_length</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Number of valid elements in the |buttons| array. </p>
</div>
</div>
<a class="anchor" id="ae955efce5fcd9de08ab8d4c7f52d0af7"></a><!-- doxytag: member="PP_GamepadSampleData::connected" ref="ae955efce5fcd9de08ab8d4c7f52d0af7" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<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>
</tr>
</table>
</div>
<div class="memdoc">
<p>Is there a gamepad connected at this index? If this is false, no other data in this structure is valid. </p>
</div>
</div>
<a class="anchor" id="a0a4d0498f6beecb54628a4f1919c48e3"></a><!-- doxytag: member="PP_GamepadSampleData::id" ref="a0a4d0498f6beecb54628a4f1919c48e3" args="[128]" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint16_t <a class="el" href="struct_p_p___gamepad_sample_data.html#a0a4d0498f6beecb54628a4f1919c48e3">PP_GamepadSampleData::id</a>[128]</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Identifier for the type of device/manufacturer. </p>
</div>
</div>
<a class="anchor" id="af832f6af0964f9023d712712a6e3afc7"></a><!-- doxytag: member="PP_GamepadSampleData::timestamp" ref="af832f6af0964f9023d712712a6e3afc7" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double <a class="el" href="struct_p_p___gamepad_sample_data.html#af832f6af0964f9023d712712a6e3afc7">PP_GamepadSampleData::timestamp</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Monotonically increasing value that is incremented when the data have been updated. </p>
</div>
</div>
<a class="anchor" id="a6d8faab2471cbf6133481d7df6c53c3f"></a><!-- doxytag: member="PP_GamepadSampleData::unused_pad_" ref="a6d8faab2471cbf6133481d7df6c53c3f" args="[4]" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int8_t <a class="el" href="struct_p_p___gamepad_sample_data.html#a6d8faab2471cbf6133481d7df6c53c3f">PP_GamepadSampleData::unused_pad_</a>[4]</td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<hr />The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="ppb__gamepad_8h.html">ppb_gamepad.h</a></li>
</ul>
</div><!-- contents -->
</div>
{{/partials.standard_nacl_api}}