Module: SDL2::GameController::Axis

Defined in:
gamecontroller.c,
gamecontroller.c

Overview

This module provides constants of gamecontroller’s axis indices used by SDL2::GameController class.

Constant Summary

INVALID =

Invalid axis index

INT2NUM(SDL_CONTROLLER_AXIS_INVALID)
LEFTX =

Left X axis

INT2NUM(SDL_CONTROLLER_AXIS_LEFTX)
LEFTY =

Left Y axis

INT2NUM(SDL_CONTROLLER_AXIS_LEFTY)
RIGHTX =

Right X axis

INT2NUM(SDL_CONTROLLER_AXIS_RIGHTX)
RIGHTY =

Right Y axis

INT2NUM(SDL_CONTROLLER_AXIS_RIGHTY)
TRIGGERLEFT =

Left trigger axis

INT2NUM(SDL_CONTROLLER_AXIS_TRIGGERLEFT)
TRIGGERRIGHT =

Right trigger axis

INT2NUM(SDL_CONTROLLER_AXIS_TRIGGERRIGHT)
MAX =

The max of an axis index

INT2NUM(SDL_CONTROLLER_AXIS_MAX)