mirror of
https://github.com/PabloMK7/citra.git
synced 2024-12-11 08:39:49 +00:00
Fix types
This commit is contained in:
parent
6f2eb2a418
commit
5f5646c850
3 changed files with 4 additions and 5 deletions
|
@ -121,8 +121,8 @@ void Handler::Set3DLed(u8 state) {
|
||||||
shared_page.ledstate_3d = state;
|
shared_page.ledstate_3d = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Handler::Set3DSlider(float_le slidestate) {
|
void Handler::Set3DSlider(float slidestate) {
|
||||||
shared_page.sliderstate_3d = slidestate;
|
shared_page.sliderstate_3d = static_cast<float_le>(slidestate);
|
||||||
}
|
}
|
||||||
|
|
||||||
SharedPageDef& Handler::GetSharedPage() {
|
SharedPageDef& Handler::GetSharedPage() {
|
||||||
|
|
|
@ -89,7 +89,7 @@ public:
|
||||||
|
|
||||||
void SetWifiLinkLevel(WifiLinkLevel);
|
void SetWifiLinkLevel(WifiLinkLevel);
|
||||||
|
|
||||||
void Set3DSlider(float_le);
|
void Set3DSlider(float);
|
||||||
|
|
||||||
void Set3DLed(u8);
|
void Set3DLed(u8);
|
||||||
|
|
||||||
|
|
|
@ -164,8 +164,7 @@ void Module::UpdatePadCallback(u64 userdata, s64 cycles_late) {
|
||||||
// TODO(xperia64): How the 3D Slider is updated by the HID module needs to be RE'd
|
// TODO(xperia64): How the 3D Slider is updated by the HID module needs to be RE'd
|
||||||
// and possibly moved to its own Core::Timing event.
|
// and possibly moved to its own Core::Timing event.
|
||||||
system.Kernel().GetSharedPageHandler().Set3DSlider(
|
system.Kernel().GetSharedPageHandler().Set3DSlider(
|
||||||
Settings::values.toggle_3d ? static_cast<float_le>(Settings::values.factor_3d) / 100
|
Settings::values.toggle_3d ? Settings::values.factor_3d / 100.0f : 0.0f);
|
||||||
: 0.0f);
|
|
||||||
|
|
||||||
// Reschedule recurrent event
|
// Reschedule recurrent event
|
||||||
system.CoreTiming().ScheduleEvent(pad_update_ticks - cycles_late, pad_update_event);
|
system.CoreTiming().ScheduleEvent(pad_update_ticks - cycles_late, pad_update_event);
|
||||||
|
|
Loading…
Reference in a new issue