Module rusty_gfx::event

source ·

Structs

  • Stateful, stack-based button processor. You can use this to process button state/values and update a PlayerInput that you can send to the server. Also handles the attack button.

Enums

  • Whether a button was pressed or released
  • Abstracted button values you may receive (arrow keys and WASD keys combined into directions, for example)
  • GameEvent represents game events caused by a user, such as the mouse moving around, buttons being pushed, or the window being closed.