#include <Input.hpp>
Inheritance diagram for sf::Input:

Public Member Functions | |
| Input () | |
| Default constructor. | |
| bool | IsKeyDown (Key::Code KeyCode) const |
| Get the state of a key. | |
| bool | IsMouseButtonDown (Mouse::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. | |
| float | GetJoystickAxis (unsigned int JoyId, Joy::Axis Axis) const |
| Get a joystick axis position. | |
Use it instead of events to handle continuous moves and more game-friendly inputs
Definition at line 44 of file Input.hpp.
| sf::Input::Input | ( | ) |
Default constructor.
| bool sf::Input::IsKeyDown | ( | Key::Code | KeyCode | ) | const |
Get the state of a key.
| KeyCode | : Key to check |
| bool sf::Input::IsMouseButtonDown | ( | Mouse::Button | Button | ) | const |
Get the state of a mouse button.
| Button | : Button to check |
| bool sf::Input::IsJoystickButtonDown | ( | unsigned int | JoyId, | |
| unsigned int | Button | |||
| ) | const |
Get the state of a joystick button.
| JoyId | : Identifier of the joystick to check (0 or 1) | |
| Button | : Button to check |
| unsigned int sf::Input::GetMouseX | ( | ) | const |
Get the mouse X position.
| unsigned int sf::Input::GetMouseY | ( | ) | const |
Get the mouse Y position.
| float sf::Input::GetJoystickAxis | ( | unsigned int | JoyId, | |
| Joy::Axis | Axis | |||
| ) | const |
Get a joystick axis position.
| JoyId | : Identifier of the joystick to check (0 or 1) | |
| Axis | : Axis to get |