Back to godoc.org

Package gamepad

v1.3.0
Latest Go to latest

The latest major version is .

Published: May 14, 2016 | License: Apache-2.0 | Module: github.com/brettchalupa/ebiten

Overview

Package gamepad offers abstract gamepad buttons and configuration.

Index

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
)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier