mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
input: add some sanity checks
This commit is contained in:
parent
10a55f16cc
commit
22b8cfd0ba
4 changed files with 14 additions and 10 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue