Go to the documentation of this file.
34 #ifndef SDL_HAPTIC_DISABLED
45 main(
int argc,
char **argv)
59 if ((strcmp(
name,
"--help") == 0) || (strcmp(
name,
"-h") == 0)) {
61 "If device is a two-digit number it'll use it as an index, otherwise\n"
62 "it'll use it as if it were part of the device's name.\n",
120 SDL_Log(
"Playing 2 second rumble at 0.5 magnitude.\n");
129 SDL_Log(
"Playing 2 second rumble at 0.3 magnitude.\n");
147 main(
int argc,
char *argv[])
#define SDL_HapticRumblePlay
#define SDL_HapticRumbleStop
@ SDL_LOG_CATEGORY_APPLICATION
#define SDL_INIT_JOYSTICK
int main(int argc, char **argv)
The entry point of this force feedback demo.
GLuint const GLchar * name
static SDL_Haptic * haptic
#define SDL_LogSetPriority
#define SDL_HapticRumbleInit
#define SDL_HapticRumbleSupported
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)