<divclass="line"><aid="l00050"name="l00050"></a><spanclass="lineno"> 50</span><spanclass="comment">// evaluate the current state of an action.</span></div>
<divclass="ttc"id="aclassutils_1_1PlayerInput_html_a10749b40d6eafb1f6c11dc056f70e380"><divclass="ttname"><ahref="classutils_1_1PlayerInput.html#a10749b40d6eafb1f6c11dc056f70e380">utils::PlayerInput::isPrimary</a></div><divclass="ttdeci">bool isPrimary</div><divclass="ttdoc">Is this the primary instance.</div><divclass="ttdef"><b>Definition</b> player_input.hpp:100</div></div>
<divclass="ttc"id="aclassutils_1_1PlayerInput_html_a1b3a6b23e41e3a4b57d916e6ed0fab6b"><divclass="ttname"><ahref="classutils_1_1PlayerInput.html#a1b3a6b23e41e3a4b57d916e6ed0fab6b">utils::PlayerInput::clear_listeners</a></div><divclass="ttdeci">void clear_listeners()</div><divclass="ttdoc">Remove all listeners.</div><divclass="ttdef"><b>Definition</b> player_input.cpp:132</div></div>
<divclass="ttc"id="aclassutils_1_1PlayerInput_html_a52f0f96cd4732ce06016459094d3a714"><divclass="ttname"><ahref="classutils_1_1PlayerInput.html#a52f0f96cd4732ce06016459094d3a714">utils::PlayerInput::listen_to</a></div><divclass="ttdeci">void listen_to(Listener const &listener)</div><divclass="ttdoc">Start listening for action.</div><divclass="ttdef"><b>Definition</b> player_input.cpp:106</div></div>
<divclass="ttc"id="aclassutils_1_1PlayerInput_html_a63928906c8769151ef37adcad505de35"><divclass="ttname"><ahref="classutils_1_1PlayerInput.html#a63928906c8769151ef37adcad505de35">utils::PlayerInput::set_device</a></div><divclass="ttdeci">void set_device(int id)</div><divclass="ttdoc">set the device observe events from.</div><divclass="ttdef"><b>Definition</b> player_input.cpp:136</div></div>
<divclass="ttc"id="aclassutils_1_1PlayerInput_html_a689cc968b84d6a92c10c541b97e3477e"><divclass="ttname"><ahref="classutils_1_1PlayerInput.html#a689cc968b84d6a92c10c541b97e3477e">utils::PlayerInput::get_last_mouse_motion</a></div><divclass="ttdeci">static gd::Vector2 get_last_mouse_motion()</div><divclass="ttdoc">Returns the last stored mouse delta.</div><divclass="ttdef"><b>Definition</b> player_input.cpp:73</div></div>
<divclass="ttc"id="aclassutils_1_1PlayerInput_html_a7dff7a6e68eeb89b2ff57b8e5447050d"><divclass="ttname"><ahref="classutils_1_1PlayerInput.html#a7dff7a6e68eeb89b2ff57b8e5447050d">utils::PlayerInput::listeners</a></div><divclass="ttdeci">gd::Vector< Listener > listeners</div><divclass="ttdoc">current listeners for this instance</div><divclass="ttdef"><b>Definition</b> player_input.hpp:105</div></div>
<divclass="ttc"id="aclassutils_1_1PlayerInput_html_a99e2dbf29ad4b1d97e7c295407cff335"><divclass="ttname"><ahref="classutils_1_1PlayerInput.html#a99e2dbf29ad4b1d97e7c295407cff335">utils::PlayerInput::lastMouseMotion</a></div><divclass="ttdeci">static gd::Vector2 lastMouseMotion</div><divclass="ttdoc">The last mouse motion, updated by the primary instance.</div><divclass="ttdef"><b>Definition</b> player_input.hpp:93</div></div>
<divclass="ttc"id="aclassutils_1_1PlayerInput_html_aacf94bfd501145c640767a7018cfdb76"><divclass="ttname"><ahref="classutils_1_1PlayerInput.html#aacf94bfd501145c640767a7018cfdb76">utils::PlayerInput::primaryExists</a></div><divclass="ttdeci">static bool primaryExists</div><divclass="ttdoc">Does a primary instance exist.</div><divclass="ttdef"><b>Definition</b> player_input.hpp:95</div></div>
<divclass="ttc"id="aclassutils_1_1PlayerInput_html_aedfe45a2286098d3e5c9bfc00fddd1e1"><divclass="ttname"><ahref="classutils_1_1PlayerInput.html#aedfe45a2286098d3e5c9bfc00fddd1e1">utils::PlayerInput::stop_listening</a></div><divclass="ttdeci">void stop_listening(Node *node)</div><divclass="ttdoc">Remove any listeners related to node.</div><divclass="ttdef"><b>Definition</b> player_input.cpp:118</div></div>
<divclass="ttc"id="aclassutils_1_1PlayerInput_html_af9aa77b42fac8fb673089d37105b932c"><divclass="ttname"><ahref="classutils_1_1PlayerInput.html#af9aa77b42fac8fb673089d37105b932c">utils::PlayerInput::device</a></div><divclass="ttdeci">int device</div><divclass="ttdoc">which device to observe events from.</div><divclass="ttdef"><b>Definition</b> player_input.hpp:102</div></div>
<divclass="ttc"id="astructutils_1_1PlayerInput_1_1Listener_html_a5d187489ffaac84a884938d81d4a2fdb"><divclass="ttname"><ahref="structutils_1_1PlayerInput_1_1Listener.html#a5d187489ffaac84a884938d81d4a2fdb">utils::PlayerInput::Listener::evaluate</a></div><divclass="ttdeci">float evaluate(gd::Ref< gd::InputEvent > const &event)</div><divclass="ttdoc">evaluate the event for changes to either actionPositive or actionNegative</div><divclass="ttdef"><b>Definition</b> player_input.cpp:56</div></div>
<divclass="ttc"id="astructutils_1_1PlayerInput_1_1Listener_html_a6b1f868fcc48dfded6806b29aa49fdb1"><divclass="ttname"><ahref="structutils_1_1PlayerInput_1_1Listener.html#a6b1f868fcc48dfded6806b29aa49fdb1">utils::PlayerInput::Listener::actionPositive</a></div><divclass="ttdeci">gd::String actionPositive</div><divclass="ttdoc">Positive action on axis, evaluates to +1.</div><divclass="ttdef"><b>Definition</b> player_input.hpp:35</div></div>
<divclass="ttc"id="astructutils_1_1PlayerInput_1_1Listener_html_a70bb4eed0c2610b74107403742eea990"><divclass="ttname"><ahref="structutils_1_1PlayerInput_1_1Listener.html#a70bb4eed0c2610b74107403742eea990">utils::PlayerInput::Listener::isMouseEvent</a></div><divclass="ttdeci">bool isMouseEvent</div><divclass="ttdoc">If either actionNegative or actionPositive is a mouse event this will be true.</div><divclass="ttdef"><b>Definition</b> player_input.hpp:44</div></div>
<divclass="ttc"id="astructutils_1_1PlayerInput_1_1Listener_html_a84833f896b4ccff9b8e3b0ae789726ab"><divclass="ttname"><ahref="structutils_1_1PlayerInput_1_1Listener.html#a84833f896b4ccff9b8e3b0ae789726ab">utils::PlayerInput::Listener::lastCached</a></div><divclass="ttdeci">float lastCached</div><divclass="ttdoc">The last cached action.</div><divclass="ttdef"><b>Definition</b> player_input.hpp:40</div></div>
<divclass="ttc"id="astructutils_1_1PlayerInput_1_1Listener_html_af989733fa828d5920c3cc26a440f60b1"><divclass="ttname"><ahref="structutils_1_1PlayerInput_1_1Listener.html#af989733fa828d5920c3cc26a440f60b1">utils::PlayerInput::Listener::has_changed</a></div><divclass="ttdeci">bool has_changed(gd::Ref< gd::InputEvent > const &event)</div><divclass="ttdoc">Check if this event has any chance to result in a trigger.</div><divclass="ttdef"><b>Definition</b> player_input.cpp:47</div></div>
<divclass="ttc"id="astructutils_1_1PlayerInput_1_1Listener_html_aff19336b1eaed1b4df15fecdd70578ba"><divclass="ttname"><ahref="structutils_1_1PlayerInput_1_1Listener.html#aff19336b1eaed1b4df15fecdd70578ba">utils::PlayerInput::Listener::actionNegative</a></div><divclass="ttdeci">gd::String actionNegative</div><divclass="ttdoc">Negative action on axis, evaluates to -1.</div><divclass="ttdef"><b>Definition</b> player_input.hpp:33</div></div>
<divid="nav-path"class="navpath"><!-- id is needed for treeview function! -->
<ul>
<liclass="navelem"><b>player_input.hpp</b></li>
<liclass="footer">Generated by <ahref="https://www.doxygen.org/index.html"><imgclass="footer"src="doxygen.svg"width="104"height="31"alt="doxygen"/></a> 1.9.7 </li>