MiniAVFFIInputContextPlatform class
FFI implementation of MiniInputContextPlatformInterface.
- Inheritance
-
- Object
- MiniInputContextPlatformInterface
- MiniAVFFIInputContextPlatform
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
configure(
MiniAVInputConfig config) → Future< void> -
Configure the input context with the given config.
override
-
destroy(
) → Future< void> -
Destroy this input context and release resources.
override
-
latestMotion(
) → MiniAVMotionEvent? -
Latest motion (IMU) sample, or null if none yet / motion not captured.
The pull surface for the parallax render loop / game tick (avoids the
callback firehose). Default: null.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestMotionPermission(
) → Future< bool> -
Request OS motion-sensor permission where one is required (iOS 13+, and
iOS-Safari web from a user gesture). No-op / already-granted elsewhere.
Returns true if motion may be captured. Default: true.
inherited
-
snapshotGamepad(
int index) → MiniAVGamepadEvent? -
Snapshot of gamepad
index's current state, or null. The pull surface for a game tick. Default: null.inherited -
startCapture(
{void onKeyboard(MiniAVKeyboardEvent event, Object? userData)?, void onMouse(MiniAVMouseEvent event, Object? userData)?, void onGamepad(MiniAVGamepadEvent event, Object? userData)?, void onMotion(MiniAVMotionEvent event, Object? userData)?, Object? userData}) → Future< void> -
Start input capture.
Provide callbacks for each input type you want to receive.
override
-
stopCapture(
) → Future< void> -
Stop input capture.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited