set

open fun set(button: Controls, @Nullable predicate: Predicate<Boolean>): Controller

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


open fun set(axis: Controls.Analog, @Nullable function: (Float) -> Float): Controller

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(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


open fun set(group: Controls.AnalogGroup, @Nullable function: (Float) -> Float): Controller

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