Merge pull request #14 from erickzanardo/gamepad

Initial Gamepad support
This commit is contained in:
Luan Nico
2018-07-17 13:25:01 -03:00
committed by GitHub
4 changed files with 128 additions and 0 deletions

View File

@ -8,6 +8,9 @@ import 'package:flutter/widgets.dart';
import 'images.dart';
import 'util.dart';
import 'gamepad.dart';
export 'gamepad.dart';
/// This class holds static references to some useful objects to use in your game.
///
@ -24,6 +27,9 @@ class Flame {
/// Access a shared instance of the [Util] class.
static Util util = new Util();
/// Access a shared instance of the [Gamepad] class.
static Gamepad gamepad = new Gamepad();
/// TODO verify if this is still needed (I don't think so)
static void initialize() {
FlameBiding.ensureInitialized();