pressDown
Press a button programmatically.
Analog Joysticks are not supported by now.
Since
0.4.0
Usage
Arguments
-
options
type:
string | { button: string, player?: number }
if it’s a string, then it’s the same as
{ button: <options> }
if it’s an object, please see below.
-
button
type:
string
The button you want to press. Can be:up
,down
,left
,right
,select
,start
,a
,b
,x
,y
,l
,l2
,l3
,r
,r2
,r3
.The ‘a’, ‘b’, ‘x’, ‘y’ buttons here are using the SNES layout:
x
y a
b -
player
type:
number
default:1
The player you want to control.
If you want to control the player other than
1
, make sure you have set a key binding for that player inretroarchConfig
option while launching. For example:Because we are using these key bindings to simulate the control.
-