set
Customise how a button is read.
Return
this
Parameters
button
The button to customise
predicate
The custom function to use based on the button's value
Customise how an axis is read.
Return
this
Parameters
axis
The axis to customise
function
The custom function to use based on the axis's value
open fun set(@NonNull group: Controls.ButtonGroup, @Nullable predicate: Predicate<Boolean>): Controller
Customise how a group of buttons is read.
Return
this
Parameters
group
The group of buttons to customise
predicate
The custom function to use based on the group's value
Customise how a group of axes is read.
Return
this
Parameters
group
The group of axes to customise
function
The custom function to use based on the group's value