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