buttons property

  1. @override
Map<String, GameAction> get buttons

The buttons a caller may hold down, by the name it asks for them by — a shooter's fire. Movement and looking are not here: every game reads them from the same stick and look axes.

Implementation

@override
Map<String, GameAction> get buttons => const <String, GameAction>{
  'fire': ShooterActions.fire,
};