pad_input 0.4.1
pad_input: ^0.4.1 copied to clipboard
Reads a gamepad's sticks, triggers and buttons as a snapshot the caller asks for, with a dead zone applied and no opinion about what any button means.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add pad_inputThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
pad_input: ^0.4.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:pad_input/pad_input.dart';