gamepad

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

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()

func (*Configuration) Scan

func (c *Configuration) Scan(index int, b StdButton) bool

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]
const (
	StdButtonNone StdButton = iota
	StdButtonLL
	StdButtonLR
	StdButtonLU
	StdButtonLD
	StdButtonCL
	StdButtonCC
	StdButtonCR
	StdButtonRL
	StdButtonRR
	StdButtonRU
	StdButtonRD
	StdButtonUL0
	StdButtonUL1
	StdButtonUR0
	StdButtonUR1
	StdButtonAL
	StdButtonAR
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL