-Modified Input and added is_action_just_pressed() as well as is_action_just_released()

This commit is contained in:
Juan Linietsky
2016-09-01 18:58:52 -03:00
parent 3759d378da
commit 5b96c3a552
11 changed files with 196 additions and 41 deletions

View File

@ -290,6 +290,10 @@ bool InputMap::event_is_joy_motion_action_pressed(const InputEvent& p_event) con
}
const Map<StringName, InputMap::Action>& InputMap::get_action_map() const {
return input_map;
}
void InputMap::load_from_globals() {
input_map.clear();;