Merge remote-tracking branch 'thesystemcoder168/block_rumble_functionality' into PR886
This commit is contained in:
@@ -327,6 +327,11 @@ namespace platf {
|
||||
* @param smallMotor The small motor.
|
||||
*/
|
||||
void rumble(target_t::pointer target, std::uint8_t largeMotor, std::uint8_t smallMotor) {
|
||||
// config::input.enable_rumble_messages_to_controllers - Default is true so ignore rumble messages when false
|
||||
if( config::input.enable_rumble_messages_to_controllers == false ) {
|
||||
// Do nothing; just return
|
||||
return;
|
||||
}
|
||||
for (int x = 0; x < gamepads.size(); ++x) {
|
||||
auto &gamepad = gamepads[x];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user