Skip to Content
VectorLib

ControllerButton

vectorlib::ControllerButton — fields, methods, parameters and return types.


pub enum ControllerButton

A controller button, named as in PROS (E_CONTROLLER_DIGITAL_*).

View source

Variants

Prop

Type

Methods

Prop

Type

index

pub const fn index(self) -> usize

Index into PROS's per-button "new press" table (button - E_CONTROLLER_DIGITAL_L1).

Returns

usize

View source

sdk_index

pub const fn sdk_index(self) -> u8

The SDK index (E_CONTROLLER_DIGITAL_* value, starting at 6).

Returns

u8

View source