You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Port Input.action_press/release() changes
This commit is contained in:
@@ -613,6 +613,8 @@ void InputDefault::action_press(const StringName &p_action, float p_strength) {
|
|||||||
action.idle_frame = Engine::get_singleton()->get_idle_frames();
|
action.idle_frame = Engine::get_singleton()->get_idle_frames();
|
||||||
action.pressed = true;
|
action.pressed = true;
|
||||||
action.strength = p_strength;
|
action.strength = p_strength;
|
||||||
|
action.raw_strength = p_strength;
|
||||||
|
action.exact = true;
|
||||||
|
|
||||||
action_state[p_action] = action;
|
action_state[p_action] = action;
|
||||||
}
|
}
|
||||||
@@ -624,6 +626,8 @@ void InputDefault::action_release(const StringName &p_action) {
|
|||||||
action.idle_frame = Engine::get_singleton()->get_idle_frames();
|
action.idle_frame = Engine::get_singleton()->get_idle_frames();
|
||||||
action.pressed = false;
|
action.pressed = false;
|
||||||
action.strength = 0.f;
|
action.strength = 0.f;
|
||||||
|
action.raw_strength = 0.f;
|
||||||
|
action.exact = true;
|
||||||
|
|
||||||
action_state[p_action] = action;
|
action_state[p_action] = action;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user