InputEvent
sealed
Tags events for input devices like mice and keyboards. InputEvent
s work in partnership with InputState
. Events
represent a one time thing that happened since the last frame, while the state represents the ongoing state of an
input.
For example there is a mouse Move event i.e. "The mouse was moved" and there is also the mouse position on the
InputState
i.e. "Where is the mouse now?"
trait KeyboardEvent
class KeyDown
class KeyUp
trait MouseEvent
class Click
class MouseDown
class MouseUp
class Move