mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-25 22:47:52 +00:00
swap A and B for switch
This commit is contained in:
parent
7f727d3cef
commit
7c76512039
|
@ -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…
Reference in a new issue