mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-19 11:11:11 +00:00
Add 3D slider value to the HID shared page (#5676)
* Add 3D slider value to the HID shared page; Fixes MSet * Use f32
This commit is contained in:
parent
50eb634583
commit
e33677b021
@ -224,6 +224,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
|
||||
// and possibly moved to its own Core::Timing event.
|
||||
mem->pad.sliderstate_3d = (Settings::values.factor_3d / 100.0f);
|
||||
system.Kernel().GetSharedPageHandler().Set3DSlider(Settings::values.factor_3d / 100.0f);
|
||||
|
||||
// Reschedule recurrent event
|
||||
|
@ -110,7 +110,9 @@ struct SharedMem {
|
||||
s64 index_reset_ticks_previous; ///< Previous `index_reset_ticks`
|
||||
u32 index; ///< Index of the last updated pad state entry
|
||||
|
||||
INSERT_PADDING_WORDS(0x2);
|
||||
INSERT_PADDING_WORDS(0x1);
|
||||
|
||||
f32 sliderstate_3d;
|
||||
|
||||
PadState current_state; ///< Current state of the pad buttons
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user