mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 08:09:19 +00:00
Fix some double->float conversions.
This commit is contained in:
parent
71d8165a86
commit
e9cb629723
6 changed files with 19 additions and 19 deletions
|
@ -128,7 +128,7 @@ void PadSettingSpin::UpdateGUI()
|
|||
|
||||
void PadSettingSpin::UpdateValue()
|
||||
{
|
||||
setting->SetValue(float(((wxSpinCtrl*)wxcontrol)->GetValue()) / 100);
|
||||
setting->SetValue(ControlState(((wxSpinCtrl*)wxcontrol)->GetValue()) / 100);
|
||||
}
|
||||
|
||||
ControlDialog::ControlDialog(GamepadPage* const parent, InputConfig& config, ControllerInterface::ControlReference* const ref)
|
||||
|
@ -490,7 +490,7 @@ void GamepadPage::ClearControl(wxEvent& event)
|
|||
{
|
||||
ControlButton* const btn = (ControlButton*)event.GetEventObject();
|
||||
btn->control_reference->expression.clear();
|
||||
btn->control_reference->range = 1.0f;
|
||||
btn->control_reference->range = 1.0;
|
||||
|
||||
std::lock_guard<std::recursive_mutex> lk(m_config.controls_lock);
|
||||
controller->UpdateReferences(g_controller_interface);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue