Controller
Interface
constructor
parent
Iface
name
get
Capabilities
get
Controller
Type
get
Input
State
get
Supports
Rumble
set
Rumble
State
NODE-GTK API Reference
Retro-2
Retro
ControllerInterface
Class ControllerInterface
An interface for a controller, e.g. a gamepad.
record
Hierarchy
ControllerInterface
Index
Constructors
constructor
Properties
parent
Iface
name
Methods
get
Capabilities
get
Controller
Type
get
Input
State
get
Supports
Rumble
set
Rumble
State
Constructors
constructor
new
Controller
Interface
(
)
:
Retro
.
ControllerInterface
Returns
Retro
.
ControllerInterface
Properties
parent
Iface
parent
Iface
:
TypeInterface
The parent interface.
field
Static
name
name
:
string
Methods
get
Capabilities
get
Capabilities
(
self
:
Retro
.
Controller
)
:
number
Parameters
self:
Retro
.
Controller
Returns
number
get
Controller
Type
get
Controller
Type
(
self
:
Retro
.
Controller
)
:
Retro
.
ControllerType
Parameters
self:
Retro
.
Controller
Returns
Retro
.
ControllerType
get
Input
State
get
Input
State
(
self
:
Retro
.
Controller
, input
:
Retro
.
Input
)
:
number
Parameters
self:
Retro
.
Controller
input:
Retro
.
Input
Returns
number
get
Supports
Rumble
get
Supports
Rumble
(
self
:
Retro
.
Controller
)
:
boolean
Parameters
self:
Retro
.
Controller
Returns
boolean
set
Rumble
State
set
Rumble
State
(
self
:
Retro
.
Controller
, effect
:
Retro
.
RumbleEffect
, strength
:
number
)
:
void
Parameters
self:
Retro
.
Controller
effect:
Retro
.
RumbleEffect
strength:
number
Returns
void
Controller
Interface
constructor
parent
Iface
name
get
Capabilities
get
Controller
Type
get
Input
State
get
Supports
Rumble
set
Rumble
State
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJSZXRyb18yLlJldHJvLkNvbnRyb2xsZXJJbnRlcmZhY2UuaHRtbCNjb25zdHJ1Y3RvciIsIm5hbWUiOiJjb25zdHJ1Y3RvciIsImNoaWxkcmV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