sf.Input Class Reference
sf.Input handles real-time input from keyboard and mouse. Use it instead of events to handle continuous moves and more game-friendly inputs.
Methods
GetJoystickAxis(JoyId, Axis)
Get a joystick axis position. Returns current axis position, in the range [-100, 100] (except for POV, which is [0, 360])
JoyId : Identifier of the joystick to check (0 or 1)
Axis : Axis to get
GetMouseX()
Get the mouse X position.
GetMouseY()
Get the mouse Y position.
IsJoystickButtonDown(JoyId, Button)
Get the state of a joystick button. Returns True if button is down, false if button is up.
JoyId : Identifier of the joystick to check (0 or 1)
Button : Button to check
IsKeyDown(KeyCode)
Get the state of a key. Returns True if key is down, false if key is up.
KeyCode : Key to check
IsMouseButtonDown(Button)
Get the state of a mouse button. Returns True if button is down, false if button is up.
Button : Button to check