Documentation ¶
Index ¶
Constants ¶
View Source
const ( DelayedModeExp = iota // aka DelayedModeConverge DelayedModeLinear )
View Source
const ( None = iota - 1 Decrease Increase )
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 Delayed ¶
type Delayed struct { Delayed float64 Source float64 Mode int // Todo: custom type? Feedback float64 Countdown int }
Todo: make fields unexported
type FloatHandler ¶
func (FloatHandler) Decrease ¶
func (h FloatHandler) Decrease()
func (FloatHandler) Increase ¶
func (h FloatHandler) Increase()
type IntHandler ¶
func (IntHandler) Decrease ¶
func (h IntHandler) Decrease()
func (IntHandler) Increase ¶
func (h IntHandler) Increase()
type KeyHandler ¶
type KeyHandler struct { Handler Modifiers []ebiten.Key // Handler works only when all Modifier are pressed. Keys [2]ebiten.Key Sounds [2][]byte // Todo: implement Volume *float64 // contains filtered or unexported fields }
func (*KeyHandler) Update ¶
func (h *KeyHandler) Update() (set bool)
Update returns whether the handler has set off (triggered) or not. Todo: set off the stricter handler only
Click to show internal directories.
Click to hide internal directories.