joystick: Add APIs to query rumble support
This commit is contained in:
1 parent
afccabb881
commit
fe09a4930a
8 files changed
+134
-9
No files matched your search
@@ -168,6 +168,14 @@ static void AddController(int device_index, SDL_bool verbose)
|
||||
SDL_GameControllerSetSensorEnabled(gamecontroller, SDL_SENSOR_GYRO, SDL_TRUE);
|
||||
}
|
||||
|
||||
if (SDL_GameControllerHasRumble(gamecontroller)) {
|
||||
SDL_Log("Rumble supported");
|
||||
}
|
||||
|
||||
if (SDL_GameControllerHasRumbleTriggers(gamecontroller)) {
|
||||
SDL_Log("Trigger rumble supported");
|
||||
}
|
||||
|
||||
UpdateWindowTitle();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user