Struct sdl2_sys::SDL_ControllerButtonEvent [] [src]

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

\brief Game controller button event structure (event.cbutton.*)

Fields

< ::SDL_CONTROLLERBUTTONDOWN or ::SDL_CONTROLLERBUTTONUP

< The joystick instance id

< The controller button (SDL_GameControllerButton)

< ::SDL_PRESSED or ::SDL_RELEASED

Trait Implementations

impl Debug for SDL_ControllerButtonEvent
[src]

[src]

Formats the value using the given formatter.

impl Copy for SDL_ControllerButtonEvent
[src]

impl Clone for SDL_ControllerButtonEvent
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more