mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 06:18:32 +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
|
@ -31,7 +31,7 @@ using namespace ciface::ExpressionParser;
|
|||
|
||||
namespace
|
||||
{
|
||||
const float INPUT_DETECT_THRESHOLD = 0.55f;
|
||||
const ControlState INPUT_DETECT_THRESHOLD = 0.55;
|
||||
}
|
||||
|
||||
ControllerInterface g_controller_interface;
|
||||
|
@ -194,7 +194,7 @@ ControlState ControllerInterface::InputReference::State( const ControlState igno
|
|||
if (parsed_expression)
|
||||
return parsed_expression->GetValue() * range;
|
||||
else
|
||||
return 0.0f;
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -208,7 +208,7 @@ ControlState ControllerInterface::OutputReference::State(const ControlState stat
|
|||
{
|
||||
if (parsed_expression)
|
||||
parsed_expression->SetValue(state);
|
||||
return 0.0f;
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue