Skip to content

Commit f5bb10d

Browse files
reorganize force feedback code and add rumble
Additionally sets in-game FF options to use the same defaults as the old osreg calls and makes changes take immediate effect (no restart required). FF strength slider changed from float to integer type.
1 parent 6bcce7e commit f5bb10d

File tree

8 files changed

+827
-284
lines changed

8 files changed

+827
-284
lines changed

code/io/joy-sdl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ void setPlayerJoystick(Joystick* stick, short cid)
225225
mprintf((" Using '%s' as Joy-%i\n", pJoystick[cid]->getName().c_str(), cid));
226226
mprintf(("\n"));
227227
mprintf((" Is gamepad: %s\n", pJoystick[cid]->isGamepad() ? "YES" : "NO"));
228+
if (pJoystick[cid]->isGamepad()) {
229+
mprintf((" Gamepad type: %d\n", SDL_GetGamepadType(pJoystick[cid]->getGamepad())));
230+
}
228231
mprintf((" Number of axes: %d\n", pJoystick[cid]->numAxes()));
229232
mprintf((" Number of buttons: %d\n", pJoystick[cid]->numButtons()));
230233
mprintf((" Number of hats: %d\n", pJoystick[cid]->numHats()));

0 commit comments

Comments
 (0)