Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoolHandler ¶
type BoolHandler struct {
Value *bool
}
func (BoolHandler) Decrease ¶
func (h BoolHandler) Decrease()
func (BoolHandler) Increase ¶
func (h BoolHandler) Increase()
type FloatHandler ¶
func (FloatHandler) Decrease ¶
func (h FloatHandler) Decrease()
func (FloatHandler) Increase ¶
func (h FloatHandler) Increase()
type Int32Handler ¶ added in v0.6.0
func (Int32Handler) Decrease ¶ added in v0.6.0
func (h Int32Handler) Decrease()
func (Int32Handler) Increase ¶ added in v0.6.0
func (h Int32Handler) Increase()
type Int64Handler ¶ added in v0.3.1
func (Int64Handler) Decrease ¶ added in v0.3.1
func (h Int64Handler) Decrease()
func (Int64Handler) Increase ¶ added in v0.3.1
func (h Int64Handler) Increase()
type IntHandler ¶
Todo: merge with Int64Handler into one
func (IntHandler) Decrease ¶
func (h IntHandler) Decrease()
func (IntHandler) Increase ¶
func (h IntHandler) Increase()
type KeyHandler ¶
type KeyHandler struct { Handler Modifier input.Key // Handler works only when Modifier is pressed. Keys [2]input.Key Sounds [2]audios.SoundPlayer Volume *float64 // contains filtered or unexported fields }
Todo: Modifiers work strangely when there are plural modifiers. Todo: support modifiers for KeyHandler
func (*KeyHandler) Handle ¶ added in v0.6.0
func (kh *KeyHandler) Handle() (fired bool)
Update returns whether the handler has fired (triggered) or not.
type UIKeyListener ¶ added in v0.6.0
type UIKeyListener struct {
// contains filtered or unexported fields
}
Required ticks to trigger pressing key: 0, long, short, short, short, ...
func NewUIKeyListener ¶ added in v0.6.0
func NewUIKeyListener(keys []input.Key) UIKeyListener
func (*UIKeyListener) Listen ¶ added in v0.6.0
func (kl *UIKeyListener) Listen() input.Key
Click to show internal directories.
Click to hide internal directories.