JoyStick in SDL
hi
i have some question about controling joystick in the SDL,my question are:
1.how can control joysticks buttons state without event( for example in can get mouse state without checking events whit SDL_GetMouseState function)?
2.how can i turn on joystick vibration in my app?
1)Use the following functions
SDL_JoystickGetAxis
SDL_JoystickGetHat
SDL_JoystickGetButton
SDL_JoystickGetBall
Look at the SDL wiki doc for more information on the functions.
2)SDL does not support joystick vibration. You will have to do that through a third party LIB or OS/driver API.
SDL_JoystickGetAxis
SDL_JoystickGetHat
SDL_JoystickGetButton
SDL_JoystickGetBall
Look at the SDL wiki doc for more information on the functions.
2)SDL does not support joystick vibration. You will have to do that through a third party LIB or OS/driver API.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement