Struct sdl2_sys::SDL_JoyButtonEvent [] [src]

#[repr(C)]
pub struct SDL_JoyButtonEvent { pub type_: Uint32, pub timestamp: Uint32, pub which: SDL_JoystickID, pub button: Uint8, pub state: Uint8, pub padding1: Uint8, pub padding2: Uint8, }

\brief Joystick button event structure (event.jbutton.*)

Fields

< ::SDL_JOYBUTTONDOWN or ::SDL_JOYBUTTONUP

< The joystick instance id

< The joystick button index

< ::SDL_PRESSED or ::SDL_RELEASED

Trait Implementations

impl Debug for SDL_JoyButtonEvent
[src]

[src]

Formats the value using the given formatter.

impl Copy for SDL_JoyButtonEvent
[src]

impl Clone for SDL_JoyButtonEvent
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more