From e6fb0cf970639d70d8207bf888eaf02681ac159a Mon Sep 17 00:00:00 2001 From: Jaguar Date: Tue, 23 Jun 2015 16:24:48 -0400 Subject: Added helper methods to InputEvent --- core/os/input_event.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/os/input_event.h') diff --git a/core/os/input_event.h b/core/os/input_event.h index 811d5504d5..4bb122ebc1 100644 --- a/core/os/input_event.h +++ b/core/os/input_event.h @@ -287,6 +287,8 @@ struct InputEvent { bool is_pressed() const; bool is_action(const String& p_action) const; + bool is_action_pressed(const String& p_action) const; + bool is_action_released(const String& p_action) const; bool is_echo() const; void set_as_action(const String& p_action, bool p_pressed); -- cgit v1.2.3