fixed crash on code that checks InputEvent
This commit is contained in:
parent
a77e53b0a5
commit
6161e731d0
|
@ -57,7 +57,7 @@ bool InputEvent::is_pressed() const {
|
||||||
|
|
||||||
bool InputEvent::is_action(const StringName &p_action) const {
|
bool InputEvent::is_action(const StringName &p_action) const {
|
||||||
|
|
||||||
return InputMap::get_singleton()->event_is_action(Ref<InputEvent>(this), p_action);
|
return InputMap::get_singleton()->event_is_action(Ref<InputEvent>((InputEvent *)this), p_action);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool InputEvent::is_action_pressed(const StringName &p_action) const {
|
bool InputEvent::is_action_pressed(const StringName &p_action) const {
|
||||||
|
|
Loading…
Reference in New Issue