Urho3D::Controls Class Reference

Controls sent over the network. More...

#include <Controls.h>

Collaboration diagram for Urho3D::Controls:
[legend]

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:
  • /home/travis/build/urho3d/Urho3D/Source/Urho3D/Input/Controls.h
  • /home/travis/build/urho3d/Urho3D/Source/Urho3D/Input/Controls.cpp