pandemonium_engine_minimal/core/input/shortcut.h

32 lines
573 B
C++
Raw Normal View History

2023-12-14 21:54:22 +01:00
#ifndef SHORTCUT_H
#define SHORTCUT_H
2023-12-14 21:54:22 +01:00
/* shortcut.h */
2023-12-14 21:54:22 +01:00
#include "core/object/resource.h"
class InputEvent;
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();
~ShortCut();
};
#endif // SHORTCUT_H