pointer_lock 0.4.0 copy "pointer_lock: ^0.4.0" to clipboard
pointer_lock: ^0.4.0 copied to clipboard

PlatformmacOS

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 Flutter:

 $ flutter pub add pointer_lock

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

dependencies:
  pointer_lock: ^0.4.0

Alternatively, 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';
0
likes
160
points
87
downloads

Documentation

API reference

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
Contributing

Topics

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

License

MIT (license)

Dependencies

flutter, plugin_platform_interface, web

More

Packages that depend on pointer_lock

Packages that implement pointer_lock