ControllerButton
vectorlib::ControllerButton — fields, methods, parameters and return types.
pub enum ControllerButtonA controller button, named as in PROS (E_CONTROLLER_DIGITAL_*).
Variants
Prop
Type
Methods
Prop
Type
index
pub const fn index(self) -> usizeIndex into PROS's per-button "new press" table (button - E_CONTROLLER_DIGITAL_L1).
Returns
usizesdk_index
pub const fn sdk_index(self) -> u8The SDK index (E_CONTROLLER_DIGITAL_* value, starting at 6).
Returns
u8