Struct piston::input::JoystickButton
[−]
pub struct JoystickButton { pub id: i32, pub button: u8, }
Components of a joystick button event. Not guaranteed consistent across backends.
Fields
id: i32
Which joystick was the button on.
Which button was pressed.
Methods
impl JoystickButton
fn new(id: i32, button: u8) -> JoystickButton
Create a new JoystickButton object. Intended for use by backends when emitting events.