#include <SFML/Config.h>#include <SFML/Window/Event.h>#include <SFML/Window/Types.h>Go to the source code of this file.
Functions | |
| CSFML_API sfBool | sfInput_IsKeyDown (sfInput *Input, sfKeyCode KeyCode) |
| Get the state of a key. | |
| CSFML_API sfBool | sfInput_IsMouseButtonDown (sfInput *Input, sfMouseButton Button) |
| Get the state of a mouse button. | |
| CSFML_API sfBool | sfInput_IsJoystickButtonDown (sfInput *Input, unsigned int JoyId, unsigned int Button) |
| Get the state of a joystick button. | |
| CSFML_API int | sfInput_GetMouseX (sfInput *Input) |
| Get the mouse X position. | |
| CSFML_API int | sfInput_GetMouseY (sfInput *Input) |
| Get the mouse Y position. | |
| CSFML_API float | sfInput_GetJoystickAxis (sfInput *Input, unsigned int JoyId, sfJoyAxis Axis) |
| Get the joystick position on a given axis. | |
Get the joystick position on a given axis.
| Input | : Input object | |
| JoyId | : Identifier of the joystick to check (0 or 1) | |
| Axis | : Identifier of the axis to read |
| CSFML_API int sfInput_GetMouseX | ( | sfInput * | Input | ) |
Get the mouse X position.
| Input | : Input object |
| CSFML_API int sfInput_GetMouseY | ( | sfInput * | Input | ) |
Get the mouse Y position.
| Input | : Input object |
| CSFML_API sfBool sfInput_IsJoystickButtonDown | ( | sfInput * | Input, | |
| unsigned int | JoyId, | |||
| unsigned int | Button | |||
| ) |
Get the state of a joystick button.
| Input | : Input object | |
| JoyId | : Identifier of the joystick to check (0 or 1) | |
| Button | : Button to check |
Get the state of a key.
| Input | : Input object | |
| KeyCode | : Key to check |
| CSFML_API sfBool sfInput_IsMouseButtonDown | ( | sfInput * | Input, | |
| sfMouseButton | Button | |||
| ) |
Get the state of a mouse button.
| Input | : Input object | |
| Button | : Button to check |