pointer_lock 0.4.2+2
pointer_lock: ^0.4.2+2 copied to clipboard
Locks the mouse pointer and reports relative deltas, read once per game-loop step. For an ordinary Flutter app, helgoboss/pointer_lock is the more natural choice.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add pointer_lockThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
pointer_lock: ^0.4.2+2Alternatively, 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:pointer_lock/pointer_lock.dart';