Skip to main content

flutter3d_pointer_lock 0.4.3 copy "flutter3d_pointer_lock: ^0.4.3" to clipboard
flutter3d_pointer_lock: ^0.4.3 copied to clipboard

PlatformmacOS

Locks the mouse pointer and reports relative deltas, read once per game-loop step. Formerly pointer_lock. For an ordinary Flutter app, helgoboss_pointer_lock fits better.

0.4.3 #

The package is renamed from pointer_lock to flutter3d_pointer_lock. It now carries the flutter3d_ prefix the engine's other packages have, which says what it was built for better than the general name did. The API is the same: PointerLock, PointerLockPlatform and CaptureState keep their names and behave as in 0.4.2+2. To move over:

flutter pub remove pointer_lock && flutter pub add flutter3d_pointer_lock

and change the import to

import 'package:flutter3d_pointer_lock/flutter3d_pointer_lock.dart';

The native side follows the name. The macOS plugin class is Flutter3dPointerLockPlugin, the CocoaPods pod and the Swift package are flutter3d_pointer_lock, and the channels are dev.flutter3d/flutter3d_pointer_lock and dev.flutter3d/flutter3d_pointer_lock/events, so an app that still gets the old package through another dependency registers both without a clash. For an ordinary Flutter app, helgoboss_pointer_lock is the more natural choice, and the README now says so at the top.

0.4.2+2 #

The README and the pub.dev description point to helgoboss/pointer_lock. The two packages share a name and a technique but are built for different callers. This one serves a game loop that reads deltas once per step; for an ordinary Flutter app the other one is the more natural choice, and the top of the README now says so. Documentation only.

0.4.2+1 #

Resolves on Flutter 3.44 and Dart 3.12.0. The constraints asked for Dart ^3.12.2 and Flutter 3.47.0, which were what this repository is built with rather than what the package needs. A workspace that supports Flutter 3.44, Flame's among them, could not depend on it. Nothing else changed.

0.4.2 #

  • The package ships a skill under skills/ for an agent that has to capture the mouse through it, and the README says where it is. The method channel, the web backend and the platform interface are 0.4.1's.

0.4.1 #

  • The page pub.dev serves stops pointing at a directory nobody visiting it can see. The README's closing line sent a reader to apps/flutter3d_template_app, a relative path inside the repository that renders on a package page as a link to nothing; it now names the editor's scaffold and the guide that explains it. Documentation only — the method channel, the web backend and the platform interface are byte for byte 0.4.0's.
  • A patch on this package's own line, and not the engine's 0.6.0. It names no sibling in its pubspec and nothing here was built against the engine release; every dependent asks for ^0.4.0, which this satisfies. A jump to the set's number would claim a share in a release that contains none of its code.

0.4.0 #

  • The example stores its state subscription and cancels it in dispose, rather than calling setState from a listener that outlived the widget. The plugin itself was already symmetric on every path.

0.3.0 #

  • A web backend. document.requestPointerLock through static interop, selected by conditional export the way pad_input selects its gamepad — so a desktop browser captures the pointer instead of being told it cannot, and a first-person game in a browser is played with the mouse rather than by dragging the world around. Pure Dart: nothing to register, and its tests run under flutter test --platform chrome.
  • Refusals, releases the player did not ask for, and captures asked for outside a user gesture are all handled as the browser reports them: a refused capture leaves the state released rather than assuming success.
  • A coarse pointer — a phone or a tablet — answers isSupported: false, which is what puts a game's on-screen controls on the screen.

0.2.0 #

  • Relative mouse deltas, which Flutter offers on no desktop platform.
  • A reset on construction, because a plugin outlives a hot restart and would otherwise strand the cursor; and focus loss releases rather than pauses, or a hidden cursor ends up over another application's window.
0
likes
150
points
115
downloads

Documentation

API reference

Publisher

verified publisherpleion.dev

Weekly Downloads

Locks the mouse pointer and reports relative deltas, read once per game-loop step. Formerly pointer_lock. For an ordinary Flutter app, helgoboss_pointer_lock fits better.

Topics

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

License

MIT (license)

Dependencies

flutter, plugin_platform_interface, web

More

Packages that depend on flutter3d_pointer_lock

Packages that implement flutter3d_pointer_lock