onepad gui: always assume rumble is supported on the GUI

close #1497
This commit is contained in:
Gregory Hainaut 2016-11-08 21:22:18 +01:00
parent 31b32d3b11
commit f3e1ba5251
1 changed files with 6 additions and 5 deletions

View File

@ -144,11 +144,12 @@ void GamepadConfiguration::InitGamepadConfiguration()
* May be better to create a new function in order to check only that
*/
if (!s_vgamePad[m_pad_id]->TestForce(0.001f)) {
wxMessageBox(L"Rumble is not available for your device.");
m_cb_rumble->Disable(); // disable the rumble checkbox
m_sl_rumble_intensity->Disable(); // disable the rumble intensity slider
}
// Bad idea. Some connected devices might support rumble but not all connected devices.
// if (!s_vgamePad[m_pad_id]->TestForce(0.001f)) {
// wxMessageBox(L"Rumble is not available for your device.");
// m_cb_rumble->Disable(); // disable the rumble checkbox
// m_sl_rumble_intensity->Disable(); // disable the rumble intensity slider
// }
} else {
wxMessageBox(L"No gamepad detected.");
m_sl_joystick_sensibility->Disable(); // disable the joystick sensibility slider