input: add some sanity checks

This commit is contained in:
Megamouse 2021-02-28 04:32:08 +01:00
parent 10a55f16cc
commit 22b8cfd0ba
4 changed files with 14 additions and 10 deletions

View file

@ -990,6 +990,8 @@ void dualsense_pad_handler::SetPadData(const std::string& padId, u32 largeMotor,
}
}
ensure(device->config);
// Set new LED color (see ds4_pad_handler)
if (r >= 0 && g >= 0 && b >= 0 && r <= 255 && g <= 255 && b <= 255)
{