godot/scene/gui/input_action.h
Rémi Verschelde f8db8a3faa Bring that Whole New World to the Old Continent too
Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6.
2017-03-19 00:36:26 +01:00

27 lines
441 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