mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-18 18:36:12 -05:00
60e6fcb7ac
* moved filter constants back to d2enum * moving key and mouse button enums into d2enum * moving render type enum into d2enum * moving input even priority enums into d2enum * moving terminal enums into d2enum
12 lines
358 B
Go
12 lines
358 B
Go
package d2interface
|
|
|
|
import "github.com/OpenDiablo2/OpenDiablo2/d2common/d2enum"
|
|
|
|
// InputManager manages an InputService
|
|
type InputManager interface {
|
|
Advance(elapsedTime, currentTime float64) error
|
|
BindHandlerWithPriority(InputEventHandler, d2enum.Priority) error
|
|
BindHandler(h InputEventHandler) error
|
|
UnbindHandler(handler InputEventHandler) error
|
|
}
|