HandheldProfile class
Maps a device's raw evdev codes to HandheldButtons. The d-pad is assumed to
be an EV_ABS hat (hatX/hatY); face/shoulder/menu buttons are EV_KEY
codes in keys. Override for other devices - rg34xxsp is the default.
- Annotations
Constructors
-
HandheldProfile({required Map<
int, HandheldButton> keys, int hatX = 16, int hatY = 17, int leftStickX = 0, int leftStickY = 1, int rightStickX = 3, int rightStickY = 4}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hatX → int
-
evdev
EV_ABSaxis codes for the d-pad hat (HAT0X / HAT0Y).final - hatY → int
-
final
-
keys
→ Map<
int, HandheldButton> -
evdev
EV_KEYcode → button.final - leftStickX → int
-
evdev
EV_ABSaxis codes for the two analog sticks. Set any to-1to disable that axis. Reported through HandheldInput.sticks.final - leftStickY → int
-
final
- rightStickX → int
-
final
- rightStickY → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- rg34xxsp → const HandheldProfile
- Anbernic RG34XXSP (Allwinner H700), captured on-device.