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