mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-18 10:26:02 -05:00
22 lines
682 B
Go
22 lines
682 B
Go
package d2input
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2interface"
|
|
)
|
|
|
|
var (
|
|
// ErrHasReg shows the input system already has a registered handler
|
|
ErrHasReg = errors.New("input system already has provided handler")
|
|
// ErrNotReg shows the input system has no registered handler
|
|
ErrNotReg = errors.New("input system does not have provided handler")
|
|
)
|
|
|
|
// Static checks to confirm struct conforms to interface
|
|
var _ d2interface.InputEventHandler = &HandlerEvent{}
|
|
var _ d2interface.KeyEvent = &KeyEvent{}
|
|
var _ d2interface.KeyCharsEvent = &KeyCharsEvent{}
|
|
var _ d2interface.MouseEvent = &MouseEvent{}
|
|
var _ d2interface.MouseMoveEvent = &MouseMoveEvent{}
|