summaryrefslogtreecommitdiff
path: root/scene/gui/input_action.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/input_action.cpp')
-rw-r--r--scene/gui/input_action.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/scene/gui/input_action.cpp b/scene/gui/input_action.cpp
index 77026dfdb1..06787fca9e 100644
--- a/scene/gui/input_action.cpp
+++ b/scene/gui/input_action.cpp
@@ -109,15 +109,15 @@ bool ShortCut::is_valid() const {
void ShortCut::_bind_methods() {
- ClassDB::bind_method(_MD("set_shortcut","event"),&ShortCut::set_shortcut);
- ClassDB::bind_method(_MD("get_shortcut"),&ShortCut::get_shortcut);
+ ClassDB::bind_method(D_METHOD("set_shortcut","event"),&ShortCut::set_shortcut);
+ ClassDB::bind_method(D_METHOD("get_shortcut"),&ShortCut::get_shortcut);
- ClassDB::bind_method(_MD("is_valid"),&ShortCut::is_valid);
+ ClassDB::bind_method(D_METHOD("is_valid"),&ShortCut::is_valid);
- ClassDB::bind_method(_MD("is_shortcut","event"),&ShortCut::is_shortcut);
- ClassDB::bind_method(_MD("get_as_text"),&ShortCut::get_as_text);
+ ClassDB::bind_method(D_METHOD("is_shortcut","event"),&ShortCut::is_shortcut);
+ ClassDB::bind_method(D_METHOD("get_as_text"),&ShortCut::get_as_text);
- ADD_PROPERTY(PropertyInfo(Variant::INPUT_EVENT,"shortcut"),_SCS("set_shortcut"),_SCS("get_shortcut"));
+ ADD_PROPERTY(PropertyInfo(Variant::INPUT_EVENT,"shortcut"),"set_shortcut","get_shortcut");
}
ShortCut::ShortCut(){