default
tksdl
tksdltksdl.JoystickgetAxis(int axis) : int - Query current value of a joystick axis.
getBall(int ball, Object ret) : boolean - Query relative trackball motion
getButton(int button) : int - Query joystick button state
getHat(int hat) : int - Query the current state of a joystick hat
getIndex() : int - Get the instance ID of an opened joystick (SDL_JoystickInstanceID())
getName() : String - Query joystick device name
getNumAxes() : int - Query number of joystick axes
getNumBalls() : int - Query number of trackballs
getNumButtons() : int - Query number of buttons
getNumHats() : int - Query number of hatsint SDL_HAT_CENTERED -
int SDL_HAT_DOWN -
int SDL_HAT_LEFT -
int SDL_HAT_LEFTDOWN -
int SDL_HAT_LEFTUP -
int SDL_HAT_RIGHT -
int SDL_HAT_RIGHTDOWN -
int SDL_HAT_RIGHTUP -
int SDL_HAT_UP -
Method getAxis | ||||||||||
Query current value of a joystick axis. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
This is a wrapper for the SDL_JoystickGetAxis() native function. | ||||||||||
Method getBall | ||||||||||||||||||||
Query relative trackball motion | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Description | ||||||||||||||||||||
This is a wrapper for the SDL_JoystickGetBall() native function. | ||||||||||||||||||||
Method getButton | ||||||||||
Query joystick button state | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
This is a wrapper for the SDL_JoystickGetButton() native function. | ||||||||||
Method getHat | ||||||||||
Query the current state of a joystick hat | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
This is a wrapper for the SDL_JoystickGetHat() native function. The current state is returned as an unsigned byte is defined as an OR'd combination of one or more of the following: SDL_HAT_CENTERED, SDL_HAT_UP, SDL_HAT_RIGHT, SDL_HAT_DOWN, SDL_HAT_LEFT, SDL_HAT_RIGHTUP, SDL_HAT_RIGHTDOWN, SDL_HAT_LEFTUP, SDL_HAT_LEFTDOWN | ||||||||||
Method getIndex | |||||
Get the instance ID of an opened joystick (SDL_JoystickInstanceID()) | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getNumAxes | |||||
Query number of joystick axes | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getNumBalls | |||||
Query number of trackballs | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getNumButtons | |||||
Query number of buttons | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getNumHats | |||||
Query number of hats | |||||
Signature | |||||
| |||||
Returns | |||||
|
Constant SDL_HAT_CENTERED (int) | |
Constant SDL_HAT_DOWN (int) | |
Constant SDL_HAT_LEFT (int) | |
Constant SDL_HAT_LEFTDOWN (int) | |
Constant SDL_HAT_LEFTUP (int) | |
Constant SDL_HAT_RIGHT (int) | |
Constant SDL_HAT_RIGHTDOWN (int) | |
Constant SDL_HAT_RIGHTUP (int) | |
Constant SDL_HAT_UP (int) | |
| Project Modules: | tksdl |
| Project Classes: | AudioDevice , AudioSample , Cursor , FPS , Joystick , Key , Mouse , SamplePlayer , SDL , Viewport |
| Project Functions: | MIDINoteToFrequency |
| All Namespaces: | default , graph , ui |
| All Projects: | core , eqxmms , ShaderVG , ShaderVG_Text , tkanalogrytm , tkchipmunk , tkclap , tkfileutils , tkfreeglut , tkfreetype2 , tkfreeverb , tkmath , tkmidi , tkmidipipe , tkminnie , tkoldmath , tkopengl , tkportaudio , tkradiastools , tksamplechain , tksampleedit , tksampler , tksdl , tksdl_net , tksidplay2 , tkspeexdsp , tksqlite , tktriangulate , tkui , tkvst2 , tkzip , ui , yingtest |
auto-generated by "DOG", the TkScript document generator. Thu, 11/Dec/2025 13:42:00