Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-07-28 18:35:26
Size: 722
Editor: SheenaSmith
Comment: update content - changeset 4624
Revision 3 as of 2010-07-29 20:10:29
Size: 1492
Editor: SheenaSmith
Comment: update content (old wiki)
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
||Uint8||'''which'''||the joystick device index||
||Uint8||'''button'''||the joystick button index||
||Uint8||'''state'''||SDL_PRESSED or SDL_RELEASED||
||Uint8||'''which'''||the joystick device index ^*the index of the joystick that reported the event*^||
||Uint8||'''button'''||the joystick button index ^*the index of the button*^||
||Uint8||'''state'''||SDL_PRESSED or SDL_RELEASED ^*the current state of the button which is either SDL_PRESSED or SDL_RELEASED*^||
Line 23: Line 23:
''You can add useful comments here'' *<<BR>>[[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.

An SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP event occurs whenever 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 ,,<<Color2(orange,(for a more detailed explanation see the Joystick section))>>. ,,'''state''' is the current state of the button which is either SDL_PRESSED or SDL_RELEASED.,, <<BR>>*
Line 26: Line 28:
 .[[SDL_JoystickEventState]] *
 .[[SDL_JoystickGetButton]] *

DRAFT

SDL_JoyButtonEvent

A structure that contains joystick button event structure information (event.jbutton.*).

Data Fields

Uint32

type

SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP

Uint8

which

the joystick device index *the index of the joystick that reported the event*

Uint8

button

the joystick button index *the index of the button*

Uint8

state

SDL_PRESSED or SDL_RELEASED *the current state of the button which is either SDL_PRESSED or SDL_RELEASED*

Uint8

padding1

Code Examples

You can add your code example here

Remarks

*
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.

An SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP event occurs whenever 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 orange

. '''state''' is the current state of the button which is either SDL_PRESSED or SDL_RELEASED.
*


CategoryStruct

None: SDL_JoyButtonEvent (last edited 2014-12-06 12:24:54 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit