pandemonium_engine_minimal/core/input/shortcut.h

32 lines
573 B
C++

#ifndef SHORTCUT_H
#define SHORTCUT_H
/* shortcut.h */
#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