Module: SDL2::GameController::Button
- Defined in:
- gamecontroller.c,
gamecontroller.c
Overview
This module provides constants of gamecontroller’s button indices used by SDL2::GameController class.
Constant Summary
- INVALID =
Invalid button index
INT2NUM(SDL_CONTROLLER_BUTTON_INVALID)
- A =
Button A
INT2NUM(SDL_CONTROLLER_BUTTON_A)
- B =
Button B
INT2NUM(SDL_CONTROLLER_BUTTON_B)
- X =
Button X
INT2NUM(SDL_CONTROLLER_BUTTON_X)
- Y =
Button Y
INT2NUM(SDL_CONTROLLER_BUTTON_Y)
- BACK =
Back Button
INT2NUM(SDL_CONTROLLER_BUTTON_BACK)
- GUIDE =
Guide Button
INT2NUM(SDL_CONTROLLER_BUTTON_GUIDE)
- START =
Start Button
INT2NUM(SDL_CONTROLLER_BUTTON_START)
- LEFTSTICK =
Left stick Button
INT2NUM(SDL_CONTROLLER_BUTTON_LEFTSTICK)
- RIGHTSTICK =
Right stick Button
INT2NUM(SDL_CONTROLLER_BUTTON_RIGHTSTICK)
- LEFTSHOULDER =
Left shoulder Button
INT2NUM(SDL_CONTROLLER_BUTTON_LEFTSHOULDER)
- RIGHTSHOULDER =
Right shoulder Button
INT2NUM(SDL_CONTROLLER_BUTTON_RIGHTSHOULDER)
- DPAD_UP =
D-pad UP Button
INT2NUM(SDL_CONTROLLER_BUTTON_DPAD_UP)
- DPAD_DOWN =
D-pad DOWN Button
INT2NUM(SDL_CONTROLLER_BUTTON_DPAD_DOWN)
- DPAD_LEFT =
D-pad LEFT Button
INT2NUM(SDL_CONTROLLER_BUTTON_DPAD_LEFT)
- DPAD_RIGHT =
D-pad RIGHT Button
INT2NUM(SDL_CONTROLLER_BUTTON_DPAD_RIGHT)
- MAX =
The max of a button index
INT2NUM(SDL_CONTROLLER_BUTTON_MAX)