Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action int
const ( ACTION_BUTTON Action = iota MENU_UP_BUTTON Action = iota MENU_DOWN_BUTTON Action = iota MENU_LEFT_BUTTON Action = iota MENU_RIGHT_BUTTON Action = iota PLAYER_FORWARD Action = iota PLAYER_BACKWARD Action = iota PLAYER_ROTATE_LEFT Action = iota PLAYER_ROTATE_RIGHT Action = iota PLAYER_VIEW_INVENTORY Action = iota DEBUG_DUMP Action = iota PROGRAM_QUIT Action = iota )
type InputHandler ¶
type InputHandler struct {
// contains filtered or unexported fields
}
func NewInputHandler ¶
func NewInputHandler() *InputHandler
func (*InputHandler) IsActive ¶
func (handler *InputHandler) IsActive(a Action) bool
type WindowHandler ¶
type WindowHandler struct { InputHandler *InputHandler // contains filtered or unexported fields }
func NewWindowHandler ¶
func NewWindowHandler(width, height int, title string) *WindowHandler
func (*WindowHandler) GetCurrentTime ¶
func (windowHandler *WindowHandler) GetCurrentTime() float64
func (*WindowHandler) GetTimeSinceLastFrame ¶
func (windowHandler *WindowHandler) GetTimeSinceLastFrame() float64
func (*WindowHandler) ShouldClose ¶
func (windowHandler *WindowHandler) ShouldClose() bool
func (*WindowHandler) StartFrame ¶
func (windowHandler *WindowHandler) StartFrame()
Click to show internal directories.
Click to hide internal directories.