You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
added bindings for InputMap
This commit is contained in:
@@ -31,6 +31,24 @@
|
||||
|
||||
InputMap *InputMap::singleton=NULL;
|
||||
|
||||
void InputMap::_bind_methods() {
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("has_action","action"),&InputMap::has_action);
|
||||
ObjectTypeDB::bind_method(_MD("get_action_id","action"),&InputMap::get_action_id);
|
||||
ObjectTypeDB::bind_method(_MD("get_action_from_id","id"),&InputMap::get_action_from_id);
|
||||
ObjectTypeDB::bind_method(_MD("add_action","action"),&InputMap::add_action);
|
||||
ObjectTypeDB::bind_method(_MD("erase_action","action"),&InputMap::erase_action);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("action_add_event","action","event"),&InputMap::action_add_event);
|
||||
ObjectTypeDB::bind_method(_MD("action_has_event","action","event"),&InputMap::action_has_event);
|
||||
ObjectTypeDB::bind_method(_MD("action_erase_event","action","event"),&InputMap::action_erase_event);
|
||||
ObjectTypeDB::bind_method(_MD("get_action_list","action"),&InputMap::get_action_list);
|
||||
ObjectTypeDB::bind_method(_MD("event_is_action","event","action"),&InputMap::event_is_action);
|
||||
ObjectTypeDB::bind_method(_MD("load_from_globals"),&InputMap::load_from_globals);
|
||||
|
||||
}
|
||||
|
||||
|
||||
void InputMap::add_action(const StringName& p_action) {
|
||||
|
||||
ERR_FAIL_COND( input_map.has(p_action) );
|
||||
|
||||
Reference in New Issue
Block a user