summaryrefslogtreecommitdiff
path: root/scene/gui/input_action.h
blob: a83b3a70cdbc3a51ccc4a431aac301adacec98bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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