SDL_JoyButtonEvent



SDL_JoyButtonEvent

NAME
STRUCTURE DEFINITION
STRUCTURE DATA
DESCRIPTION
SEE ALSO

NAME

SDL_JoyButtonEvent − Joystick button event structure

STRUCTURE DEFINITION

typedef struct{
  Uint8 type;
  Uint8 which;
  Uint8 button;
  Uint8 state;
} SDL_JoyButtonEvent;

STRUCTURE DATA

type

SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP

which

Joystick device index

button

Joystick button index

state

SDL_PRESSED or SDL_RELEASED

DESCRIPTION

SDL_JoyButtonEvent is a member of the SDL_Event union and is used when an event of type SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP is reported.

A SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP event occurs when ever a user presses or releases a button on a joystick. The field which is the index of the joystick that reported the event and button is the index of the button (for a more detailed explaination see the Joystick section). state is the current state or the button which is either SDL_PRESSED or SDL_RELEASED.

SEE ALSO

SDL_Event, Joystick Functions, SDL_JoystickEventState, SDL_JoystickGetButton



More Linux Commands

manpages/XDrawPoint.3.html
XDrawPoint(3) - draw points and points structure (Man Page)
The XDrawPoint function uses the foreground pixel and function components of the GC to draw a single point into the specified drawable; XDrawPoints draws multip

manpages/nlmconv.1.html
nlmconv(1) - converts object code into an NLM. (Man Page)...
nlmconv converts the relocatable i386 object file infile into the NetWare Loadable Module outfile, optionally reading headerfile for NLM header information. For

manpages/getrpcbynumber_r.3.html
getrpcbynumber_r(3) - get RPC entry (reentrant) (Man Page)
The getrpcent_r(), getrpcbyname_r(), and getrpcbynumber_r() functions are the reentrant equivalents of, respectively, getrpcent(3), getrpcbyname(3), and getrpcb

manpages/systemd-timedated.8.html
systemd-timedated(8) Time and date bus mechanism (Man Page)
systemd-timedated is a system service that may be used as a mechanism to change the system clock and timezone, as well as to enable/disable NTP time synchroniza

manpages/autotrace.1.html
autotrace(1) converts bitmap image data into vector graphics
The autotrace program accepts bitmap graphics from the file inputfile specified on the command line, and as output produces a collection of splines approximatin

manpages/XGetModifierMapping.3.html
XGetModifierMapping(3) - manipulate keyboard encoding and ke
The XChangeKeyboardMapping function defines the symbols for the specified number of KeyCodes starting with first_keycode. The symbols for KeyCodes outside this

manpages/Tcl_CreateEncoding.3.html
Tcl_CreateEncoding(3) - procedures for creating and using en
Tcl_GetEncoding finds an encoding given its name. The name may refer to a built-in Tcl encoding, a user-defined encoding registered by calling Tcl_CreateEncodin

manpages/ppmtoppm.1.html
ppmtoppm(1) - copy PPM image (Commands - Linux man page)....
This program is part of Netpbm(1) ppmtoppm simply copies a PPM image from Standard Input to Standard Output. This may seem an unnecessary duplication of cat, bu

manpages/btrfs-balance.8.html
btrfs-balance(8) balance btrfs filesystem - Linux man page
btrfs balance is used to balance chunks in a btrfs filesystem across multiple or even single device. See btrfs-device(8) for more details about the effect on de

manpages/Tcl_SignalId.3.html
Tcl_SignalId(3) - Convert signal codes - Linux manual page
Tcl_SignalId and Tcl_SignalMsg return a string representation of the provided signal number (sig). Tcl_SignalId returns a machine-readable textual identifier su

manpages/ldap_value_free.3.html
ldap_value_free(3) - LDAP attribute value handling routines
These routines are used to retrieve and manipulate attribute values from an LDAP entry as returned by ldap_first_entry(3) or ldap_next_entry(3). ldap_get_values

manpages/DMXGetDesktopAttributes.3.html
DMXGetDesktopAttributes(3) - determine global bounding box
DMXGetDesktopAttributes() returns information about the desktop in DMXDesktopAttributes: typedef struct { unsigned int width; unsigned int height; int shiftX; i





We can't live, work or learn in freedom unless the software we use is free.