sf::Input Class Reference
Input handles real-time input from keyboard and mouse. More...
#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. | |
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. |
Detailed Description
Input handles real-time input from keyboard and mouse.Use it instead of events to handle continuous moves and more game-friendly inputs
Definition at line 44 of file Input.hpp.
Constructor & Destructor Documentation
Member Function Documentation
float sf::Input::GetJoystickAxis | ( | unsigned int | JoyId, | |
Joy::Axis | Axis | |||
) | const |
int sf::Input::GetMouseX | ( | ) | const |
int sf::Input::GetMouseY | ( | ) | const |
bool sf::Input::IsJoystickButtonDown | ( | unsigned int | JoyId, | |
unsigned int | Button | |||
) | const |
bool sf::Input::IsKeyDown | ( | Key::Code | KeyCode | ) | const |
bool sf::Input::IsMouseButtonDown | ( | Mouse::Button | Button | ) | const |
The documentation for this class was generated from the following files:
:: Copyright © 2007-2008 Laurent Gomila, all rights reserved :: Documentation generated by doxygen 1.5.2 ::