toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge
/
korlibs.korge.input
/
GamePadEvents
Game
Pad
Events
class
GamePadEvents
(
val
view
:
View
)
Members
Constructors
Game
Pad
Events
Link copied to clipboard
constructor
(
view
:
View
)
Properties
button
Link copied to clipboard
val
button
:
Signal
<
GamePadButtonEvent
>
connection
Link copied to clipboard
val
connection
:
Signal
<
GamePadConnectionEvent
>
gamepads
Link copied to clipboard
val
gamepads
:
GamePadUpdateEvent
stick
Link copied to clipboard
val
stick
:
Signal
<
GamePadStickEvent
>
updated
Link copied to clipboard
val
updated
:
Signal
<
GamePadUpdateEvent
>
updated
Gamepad
Link copied to clipboard
val
updatedGamepad
:
Signal
<
GamepadInfo
>
view
Link copied to clipboard
val
view
:
View
Functions
button
Link copied to clipboard
fun
button
(
callback
:
suspend
(
playerId
:
Int
,
pressed
:
Boolean
,
button
:
GameButton
,
value
:
Float
)
->
Unit
)
fun
button
(
playerId
:
Int
,
callback
:
suspend
(
pressed
:
Boolean
,
button
:
GameButton
,
value
:
Float
)
->
Unit
)
connected
Link copied to clipboard
fun
connected
(
callback
:
suspend
(
playerId
:
Int
)
->
Unit
)
disconnected
Link copied to clipboard
fun
disconnected
(
callback
:
suspend
(
playerId
:
Int
)
->
Unit
)
down
Link copied to clipboard
fun
down
(
playerId
:
Int
,
button
:
GameButton
,
callback
:
suspend
(
)
->
Unit
)
stick
Link copied to clipboard
fun
stick
(
callback
:
suspend
(
playerId
:
Int
,
stick
:
GameStick
,
x
:
Double
,
y
:
Double
)
->
Unit
)
up
Link copied to clipboard
fun
up
(
playerId
:
Int
,
button
:
GameButton
,
callback
:
suspend
(
)
->
Unit
)
updated
Gamepad
Link copied to clipboard
fun
updatedGamepad
(
callback
:
(
GamepadInfo
)
->
Unit
)