U3D
Open-source, cross-platform 2D and 3D game engine built in C++
|
Controls sent over the network. More...
#include </var/dev/u3d/stable/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. | |
Controls sent over the network.