mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Changed some code showed in LGTM and Coverage
This commit is contained in:
parent
584ca0f156
commit
6cbaf7662f
55 changed files with 94 additions and 202 deletions
|
@ -202,7 +202,7 @@ bool InputMap::event_get_action_status(const Ref<InputEvent> &p_event, const Str
|
|||
if (p_pressed != NULL)
|
||||
*p_pressed = input_event_action->is_pressed();
|
||||
if (p_strength != NULL)
|
||||
*p_strength = (*p_pressed) ? input_event_action->get_strength() : 0.0f;
|
||||
*p_strength = (p_pressed != NULL && *p_pressed) ? input_event_action->get_strength() : 0.0f;
|
||||
return input_event_action->get_action() == p_action;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue