mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-12 11:09:26 +00:00
DS3/DS4: fix battery LED update
This commit is contained in:
parent
dbb03ae2d7
commit
3e7e077fad
2 changed files with 2 additions and 0 deletions
|
@ -590,6 +590,7 @@ void ds3_pad_handler::apply_pad_data(const std::shared_ptr<PadDevice>& device, c
|
||||||
if (dev->last_battery_level != dev->battery_level)
|
if (dev->last_battery_level != dev->battery_level)
|
||||||
{
|
{
|
||||||
dev->new_output_data = true;
|
dev->new_output_data = true;
|
||||||
|
dev->last_battery_level = dev->battery_level;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -894,6 +894,7 @@ void ds4_pad_handler::apply_pad_data(const std::shared_ptr<PadDevice>& device, c
|
||||||
config->colorG.set(combined_color & 0xff);
|
config->colorG.set(combined_color & 0xff);
|
||||||
config->colorB.set(0);
|
config->colorB.set(0);
|
||||||
ds4_dev->new_output_data = true;
|
ds4_dev->new_output_data = true;
|
||||||
|
ds4_dev->last_battery_level = ds4_dev->battery_level;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue