Module ambient_api::prelude::input
source · Expand description
[Client-only] Input retrieval and manipulation.
Structs
- 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.
Constants
- Focus id of the “game”; i.e. 3D world rather than any UI element
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.
- Returns true if the “game” is focused; i.e. no UI element but the playable 3D game world
- 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.
- Sets the global focus, and notifies all listeners.