Controller
Interface
constructor
parent_
iface
name
get_
capabilities
get_
controller_
type
get_
input_
state
poll
set_
rumble_
state
GJS API Reference
Retro-0.14
Retro
ControllerInterface
Class ControllerInterface
Hierarchy
ControllerInterface
Index
Constructors
constructor
Properties
parent_
iface
name
Methods
get_
capabilities
get_
controller_
type
get_
input_
state
poll
set_
rumble_
state
Constructors
constructor
new
Controller
Interface
(
)
:
Retro
.
ControllerInterface
Returns
Retro
.
ControllerInterface
Properties
parent_
iface
parent_
iface
:
TypeInterface
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
poll
poll
(
self
:
Retro
.
Controller
)
:
void
Parameters
self:
Retro
.
Controller
Returns
void
set_
rumble_
state
set_
rumble_
state
(
self
:
Retro
.
Controller
, effect
:
Retro
.
RumbleEffect
, strength
:
number
)
:
boolean
Parameters
self:
Retro
.
Controller
effect:
Retro
.
RumbleEffect
strength:
number
Returns
boolean
Controller
Interface
constructor
parent_
iface
name
get_
capabilities
get_
controller_
type
get_
input_
state
poll
set_
rumble_
state
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJSZXRyb18wXzE0LlJldHJvLkNvbnRyb2xsZXJJbnRlcmZhY2UuaHRtbCNjb25zdHJ1Y3RvciIsIm5hbWUiOiJjb25zdHJ1Y3RvciIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbG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