Documentation ¶
Overview ¶
Package gamepad offers abstract gamepad buttons and configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
// contains filtered or unexported fields
}
func (*Configuration) IsButtonPressed ¶
func (c *Configuration) IsButtonPressed(id int, b StdButton) bool
func (*Configuration) Name ¶
func (c *Configuration) Name(b StdButton) string
func (*Configuration) Reset ¶
func (c *Configuration) Reset()
type StdButton ¶
type StdButton int
A StdButton represents a standard gamepad button. See also: http://www.w3.org/TR/gamepad/
[UL0] [UR0] [UL1] [UR1] [LU] [CC] [RU] [LL][LR] [CL][CR] [RL][RR] [LD] [RD] [AL] [AR]
Click to show internal directories.
Click to hide internal directories.