diff options
author | Jaguar <killerjaguar26@gmail.com> | 2015-06-23 16:24:48 -0400 |
---|---|---|
committer | Jaguar <killerjaguar26@gmail.com> | 2015-06-23 16:24:48 -0400 |
commit | e6fb0cf970639d70d8207bf888eaf02681ac159a (patch) | |
tree | f0d4713e78e6813217fbb4cc47fbe1558845c10f /core/os/input_event.h | |
parent | e42aed6ed059b23c100f5a0bc5170831f12400aa (diff) |
Added helper methods to InputEvent
Diffstat (limited to 'core/os/input_event.h')
-rw-r--r-- | core/os/input_event.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |