Merge remote-tracking branch 'thesystemcoder168/block_rumble_functionality' into PR886

This commit is contained in:
Yukino Song
2025-07-14 01:28:28 +08:00
7 changed files with 23 additions and 0 deletions

View File

@@ -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];