12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef SHORTCUT_H
- #define SHORTCUT_H
- #include "core/os/input_event.h"
- #include "core/resource.h"
- class ShortCut : public Resource {
- GDCLASS(ShortCut, Resource);
- Ref<InputEvent> shortcut;
- protected:
- static void _bind_methods();
- public:
- void set_shortcut(const Ref<InputEvent> &p_shortcut);
- Ref<InputEvent> get_shortcut() const;
- bool is_shortcut(const Ref<InputEvent> &p_event) const;
- bool is_valid() const;
- String get_as_text() const;
- ShortCut();
- };
- #endif
|