default
tksdl
tksdl
tksdl.Joystick
getAxis(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
- Query joystick device index
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 | |||||
Query joystick device index | |||||
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 , ui |
All Projects: | core , debugtext , tkfreetype2 , tkmath , tkmidi , tkopengl , tkportaudio , tksdl , tkui , tkunit |
auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54