Input handles real-time input from keyboard and mouse. More...
#include <Input.hpp>
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. | |
| int | GetMouseX () const |
| Get the mouse X position. | |
| int | GetMouseY () const |
| Get the mouse Y position. | |
| float | GetJoystickAxis (unsigned int JoyId, Joy::Axis Axis) const |
| Get a joystick axis position. | |
Input handles real-time input from keyboard and mouse.
Use it instead of events to handle continuous moves and more game-friendly inputs
| int sf::Input::GetMouseX | ( | ) | const |
| int sf::Input::GetMouseY | ( | ) | const |
| bool sf::Input::IsMouseButtonDown | ( | Mouse::Button | Button | ) | const |