Module ggez_goodies::input [] [src]

An abstract input state object that gets fed user events and updates itself based on a set of key bindings.

The goals are:

  • Have a layer of abstract key bindings rather than looking at concrete event types
  • Use this to be able to abstract away differences between keyboards, joysticks and game controllers (rather based on Unity3D),
  • Do some tweening of input axes and stuff just for fun.
  • Take ggez's event-based input API, and present event- or state-based API so you can do whichever you want.

Structs

InputBinding

A struct that contains a mapping from physical input events (currently just Keycodes) to whatever your logical Axis/Button types are.

InputState

Enums

InputEffect