2016-06-05 00:31:29 +00:00
|
|
|
#ifndef INPUTACTION_H
|
|
|
|
#define INPUTACTION_H
|
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
class ShortCut : public Resource {
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
OBJ_TYPE(ShortCut, Resource);
|
2016-06-05 00:31:29 +00:00
|
|
|
|
|
|
|
InputEvent shortcut;
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
protected:
|
2016-06-05 00:31:29 +00:00
|
|
|
static void _bind_methods();
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
public:
|
|
|
|
void set_shortcut(const InputEvent &p_shortcut);
|
2016-06-05 00:31:29 +00:00
|
|
|
InputEvent get_shortcut() const;
|
2017-03-18 23:36:26 +00:00
|
|
|
bool is_shortcut(const InputEvent &p_Event) const;
|
2016-06-05 00:31:29 +00:00
|
|
|
bool is_valid() const;
|
|
|
|
|
|
|
|
String get_as_text() const;
|
|
|
|
|
|
|
|
ShortCut();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INPUTACTION_H
|