Dart Documentationgame_loopGameLoopGamepad

GameLoopGamepad class

A gamepad

class GameLoopGamepad {
 static const int BUTTON0 = 0;
 static const int BUTTON1 = 1;
 static const int BUTTON2 = 2;
 static const int BUTTON3 = 3;
 static const int BUTTON4 = 4;
 static const int BUTTON5 = 5;
 static const int BUTTON6 = 6;
 final GameLoop gameLoop;

 GameLoopDigitalInput buttons;
 GameLoopAnalogInput sticks;

 GameLoopGamepad(this.gameLoop) {
 }
}

Static Properties

const int BUTTON0 #

BUTTON0 = 0

const int BUTTON1 #

BUTTON1 = 1

const int BUTTON2 #

BUTTON2 = 2

const int BUTTON3 #

BUTTON3 = 3

const int BUTTON4 #

BUTTON4 = 4

const int BUTTON5 #

BUTTON5 = 5

const int BUTTON6 #

BUTTON6 = 6

Constructors

new GameLoopGamepad(GameLoop gameLoop) #

GameLoopGamepad(this.gameLoop) {
}

Properties

GameLoopDigitalInput buttons #

buttons

final GameLoop gameLoop #

gameLoop

GameLoopAnalogInput sticks #

sticks