Input
Functions
IsKeyPressed (Boolean)
Check if a key is currently pressed.
This is to check if a key is currently being pressed/held down.
Parameters
KeyCode (Integer)
Example
WasKeyPressed (Boolean)
Check if a key was pressed.
This is to check if a key WAS pressed. Use this if you're going to make keys toggle features, etc.
Parameters
KeyCode (Integer)
Example
GetMousePosition (FVector)
Get the coordinates of the mouse.
X and Y will be -1 when the cursor is off the screen, on another monitor or not on the game window.
Example
Key
All key are pre-defined in the Key
enum.
Last updated