MiniInputContextPlatformInterface class abstract

Abstract input context for configuring and capturing input events.

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.
destroy() Future<void>
Destroy this input context and release resources.
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.
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.
snapshotGamepad(int index) MiniAVGamepadEvent?
Snapshot of gamepad index's current state, or null. The pull surface for a game tick. Default: null.
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.
stopCapture() Future<void>
Stop input capture.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited