virtualx-engine/scene/gui/input_action.h
Juan Linietsky 118eed485e ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.
All usages of "type" to refer to classes were renamed to "class"
ClassDB has been exposed to GDScript.
OBJ_TYPE() macro is now GDCLASS()
2017-01-02 23:03:46 -03:00

26 lines
439 B
C++

#ifndef INPUTACTION_H
#define INPUTACTION_H
#include "resource.h"
class ShortCut : public Resource {
GDCLASS(ShortCut,Resource);
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