.\" This manpage content is licensed under Creative Commons
.\"  Attribution 4.0 International (CC BY 4.0)
.\"   https://creativecommons.org/licenses/by/4.0/
.\" This manpage was generated from SDL's wiki page for SDL_JoyButtonEvent:
.\"   https://wiki.libsdl.org/SDL_JoyButtonEvent
.\" Generated with SDL/build-scripts/wikiheaders.pl
.\"  revision release-3.2.8-0-gf6864924f
.\" Please report issues in this manpage's content at:
.\"   https://github.com/libsdl-org/sdlwiki/issues/new
.\" Please report issues in the generation of this manpage from the wiki at:
.\"   https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20SDL_JoyButtonEvent
.\" SDL can be found at https://libsdl.org/
.de URL
\$2 \(laURL: \$1 \(ra\$3
..
.if \n[.g] .mso www.tmac
.TH SDL_JoyButtonEvent 3type "SDL 3.2.8" "Simple Directmedia Layer" "SDL3 DATATYPES"
.SH NAME
SDL_JoyButtonEvent \- Joystick button event structure (event\[char46]jbutton\[char46]*)
.SH HEADER FILE
Defined in SDL3/SDL_events\[char46]h

.SH SYNOPSIS
.nf
.B #include \(dqSDL3/SDL.h\(dq
.PP
.BI "typedef struct SDL_JoyButtonEvent
.BI "{
.BI "    SDL_EventType type; /**< SDL_EVENT_JOYSTICK_BUTTON_DOWN or SDL_EVENT_JOYSTICK_BUTTON_UP */
.BI "    Uint32 reserved;
.BI "    Uint64 timestamp;   /**< In nanoseconds, populated using SDL_GetTicksNS() */
.BI "    SDL_JoystickID which; /**< The joystick instance id */
.BI "    Uint8 button;       /**< The joystick button index */
.BI "    bool down;      /**< true if the button is pressed */
.BI "    Uint8 padding1;
.BI "    Uint8 padding2;
.BI "} SDL_JoyButtonEvent;
.fi
.SH AVAILABILITY
This struct is available since SDL 3\[char46]2\[char46]0\[char46]