testing library

What a test of code that locks the pointer holds in its place: ScriptedPointerLock, a platform that grants a capture unless told not to and reports the motion a test moves the mouse by, installed as PointerLockPlatform.instance.

Its own library, so the package's main library ships no stand-in: an app imports flutter3d_pointer_lock.dart, its tests this as well.

Classes

ScriptedPointerLock
A PointerLockPlatform a test drives: it grants a capture unless told not to, reports the motion a test moves the mouse by, and loses the capture the way a window loses focus.