Module ambient_api::input

source ·
Available on crate feature client only.
Expand description

[Client-only] Input retrieval and manipulation.

Structs

Enums

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.