pointer_lock 0.4.2+1 copy "pointer_lock: ^0.4.2+1" to clipboard
pointer_lock: ^0.4.2+1 copied to clipboard

Locks the mouse pointer in place and reports its motion as relative deltas, which Flutter offers on no desktop platform and does not surface in a browser.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add pointer_lock

With Flutter:

 $ flutter pub add pointer_lock

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  pointer_lock: ^0.4.2+1

Alternatively, your editor might support dart pub get or 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';
0
likes
0
points
171
downloads

Publisher

verified publisherpleion.dev

Weekly Downloads

Locks the mouse pointer in place and reports its motion as relative deltas, which Flutter offers on no desktop platform and does not surface in a browser.

Homepage
Repository (GitHub)
View/report issues

Topics

#input #mouse #pointer-lock #game-development

License

unknown (license)

Dependencies

flutter, plugin_platform_interface, web

More

Packages that depend on pointer_lock

Packages that implement pointer_lock