mirror of
https://github.com/Relintai/pandemonium_engine_minimal.git
synced 2024-11-17 22:17:19 +01:00
32 lines
573 B
C++
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
|