Controller
A wrapper around a Gamepad object that provides a Controls interface and custom input calculations. These gamepad objects are used natively in BunyipsOpMode, and are the drop-in replacements for gamepad1
and gamepad2
.
Author
Lucas Bubner, 2024
Since
1.0.0-pre
See also
Inherited properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Check if a button is currently pressed on a gamepad, with debounce to ignore a press that was already detected upon the first call of this function and button.
Link copied to clipboard
Call to reset the initial debounce state of getDebounced, allowing further calls to this method to capture the initial state of the button again.
Link copied to clipboard
Customise how a button is read.
Customise how an axis is read.
Customise how a group of axes is read.
open fun set(@NonNull group: Controls.ButtonGroup, @Nullable predicate: Predicate<Boolean>): Controller
Customise how a group of buttons is read.
Link copied to clipboard
Inherited functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
getDebounced
extension for Controller.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard