#include <Input.hpp>
Inheritance diagram for sfInput:
Public Member Functions | |
sfInput () | |
Default constructor. | |
bool | IsKeyDown (sfKey::Code Key) const |
Get the state of a key. | |
bool | IsMouseButtonDown (sfMouse::Button Button) const |
Get the state of a mouse button. | |
bool | IsJoystickButtonDown (unsigned int JoyId, unsigned int Button) const |
Get the state of a joystick button. | |
unsigned int | GetMouseX () const |
Get the mouse X position. | |
unsigned int | GetMouseY () const |
Get the mouse Y position. | |
int | GetJoystickX (unsigned int JoyId) const |
Get the joystick X position. | |
int | GetJoystickY (unsigned int JoyId) const |
Get the joystick Y position. | |
int | GetJoystickZ (unsigned int JoyId) const |
Get the joystick Z position. |
Use it instead of events to handle continuous moves and more game-friendly inputs
Definition at line 42 of file Input.hpp.
bool sfInput::IsKeyDown | ( | sfKey::Code | Key | ) | const |
bool sfInput::IsMouseButtonDown | ( | sfMouse::Button | Button | ) | const |
bool sfInput::IsJoystickButtonDown | ( | unsigned int | JoyId, | |
unsigned int | Button | |||
) | const |
unsigned int sfInput::GetMouseX | ( | ) | const |
unsigned int sfInput::GetMouseY | ( | ) | const |
int sfInput::GetJoystickX | ( | unsigned int | JoyId | ) | const |
int sfInput::GetJoystickY | ( | unsigned int | JoyId | ) | const |
int sfInput::GetJoystickZ | ( | unsigned int | JoyId | ) | const |