mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 11:43:19 +08:00
Merge pull request #14 from erickzanardo/gamepad
Initial Gamepad support
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user