Added convenience create_reference methods for Key and JoyButton inputs
This commit is contained in:
parent
5c2fe970b8
commit
ca1abc7352
2 changed files with 37 additions and 0 deletions
|
|
@ -260,6 +260,8 @@ public:
|
|||
virtual String as_text() const override;
|
||||
virtual String to_string() override;
|
||||
|
||||
static Ref<InputEventKey> create_reference(uint32_t p_keycode_with_modifier_masks);
|
||||
|
||||
InputEventKey() {}
|
||||
};
|
||||
|
||||
|
|
@ -406,6 +408,8 @@ public:
|
|||
virtual String as_text() const override;
|
||||
virtual String to_string() override;
|
||||
|
||||
static Ref<InputEventJoypadButton> create_reference(int p_btn_index);
|
||||
|
||||
InputEventJoypadButton() {}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue