godot/scene/gui/input_action.h
Juan Linietsky 007efb6a20 -customizable shortcuts in editor
-editor settings now save to .tres instead of .xml
-buttons can now hold a shortcut
2016-06-04 21:31:47 -03:00

27 lines
440 B
C++

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