swap A and B for switch
This commit is contained in:
parent
d93ed6c7db
commit
f3f91a1d8e
@ -607,6 +607,7 @@ class Controls extends FlxActionSet
|
|||||||
|
|
||||||
public function addDefaultGamepad(id):Void
|
public function addDefaultGamepad(id):Void
|
||||||
{
|
{
|
||||||
|
#if !switch
|
||||||
addGamepadLiteral(id, [
|
addGamepadLiteral(id, [
|
||||||
Control.ACCEPT => [A],
|
Control.ACCEPT => [A],
|
||||||
Control.BACK => [B],
|
Control.BACK => [B],
|
||||||
@ -617,6 +618,19 @@ class Controls extends FlxActionSet
|
|||||||
Control.PAUSE => [START],
|
Control.PAUSE => [START],
|
||||||
Control.RESET => [Y]
|
Control.RESET => [Y]
|
||||||
]);
|
]);
|
||||||
|
#else
|
||||||
|
addGamepadLiteral(id, [
|
||||||
|
//Swap A and B for switch
|
||||||
|
Control.ACCEPT => [B],
|
||||||
|
Control.BACK => [A],
|
||||||
|
Control.UP => [DPAD_UP, LEFT_STICK_DIGITAL_UP],
|
||||||
|
Control.DOWN => [DPAD_DOWN, LEFT_STICK_DIGITAL_DOWN],
|
||||||
|
Control.LEFT => [DPAD_LEFT, LEFT_STICK_DIGITAL_LEFT],
|
||||||
|
Control.RIGHT => [DPAD_RIGHT, LEFT_STICK_DIGITAL_RIGHT],
|
||||||
|
Control.PAUSE => [START],
|
||||||
|
Control.RESET => [Y]
|
||||||
|
]);
|
||||||
|
#end
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user