Skip to content

Commit af064cf

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 7fa334b commit af064cf

8 files changed

Lines changed: 827 additions & 284 deletions

File tree

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)