API Documentation

class FlxGamepadMapping

package flixel.input.gamepad.mappings

extended by LogitechMapping, MFiMapping, MayflashWiiRemoteMapping, OUYAMapping, PS4Mapping, PSVitaMapping, SwitchJoyconLeftMapping, SwitchJoyconRightMapping, SwitchProMapping, WiiRemoteMapping, XInputMapping

Constructor

new(?attachment:FlxGamepadAttachment)

Variables

leftStick:FlxGamepadAnalogStick

rightStick:FlxGamepadAnalogStick

@:value(false)supportsMotion:Bool = false

@:value(false)supportsPointer:Bool = false

Methods

getAnalogStick(ID:FlxGamepadInputID):FlxGamepadAnalogStick

getID(rawID:Int):FlxGamepadInputID

Given a raw hardware code, return the "universal" ID

getInputLabel(id:FlxGamepadInputID):Null<String>

getRawID(ID:FlxGamepadInputID):Int

Given an ID, return the raw hardware code

isAxisFlipped(axisID:Int):Bool

Whether this axis needs to be flipped

isAxisForMotion(ID:FlxGamepadInputID):Bool

© 2022