Urho3D
Public Member Functions | Public Attributes | List of all members
Urho3D::Controls Class Reference

Controls sent over the network. More...

#include </home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Input/Controls.h>

Public Member Functions

 Controls ()
 Construct.
 
 ~Controls ()
 Destruct.
 
void Reset ()
 Reset to initial state.
 
void Set (unsigned buttons, bool down=true)
 Set or release buttons.
 
bool IsDown (unsigned button) const
 Check if a button is held down.
 
bool IsPressed (unsigned button, const Controls &previousControls) const
 Check if a button was pressed on this frame. Requires previous frame's controls.
 

Public Attributes

unsigned buttons_
 Button state.
 
float yaw_
 Mouse yaw.
 
float pitch_
 Mouse pitch.
 
VariantMap extraData_
 Extra control data.
 

Detailed Description

Controls sent over the network.


The documentation for this class was generated from the following files: