Module ambient_api::input
source · Expand description
[Client-only] Input retrieval and manipulation.
Structs
- Helper utility that will lock and hide the cursor if necessary.
- The state of a player’s raw input. Get these with get or get_previous.
- The changes between the player’s input state this update (get) and their input state last update (get_previous). Get this with get_delta or Input::delta.
Enums
- The code associated with a key on the keyboard.
- A button on the mouse.
Functions
- Gets the local player’s most recent raw input state.
- Gets the changes to the local player’s raw input state in the last update, as well as the current raw input state.
- Gets the local player’s raw input state prior to the most recent update.
- Sets the cursor icon.
- Sets the cursor’s lock state. If set, the cursor will not be able to move outside of the window.
- Sets the cursor’s visibility.