- Timestamp:
- Aug 28, 2010, 1:51:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/input/KeyBinderManager.cc
r7219 r7236 48 48 static const std::string __CC_tunbind_name = "tunbind"; 49 49 50 _SetConsoleCommand(__CC_keybind_name, &KeyBinderManager::keybind).defaultValues("");51 _SetConsoleCommand(__CC_tkeybind_name, &KeyBinderManager::tkeybind).defaultValues("");52 _SetConsoleCommand(__CC_unbind_name, &KeyBinderManager::unbind).defaultValues("");53 _SetConsoleCommand(__CC_tunbind_name, &KeyBinderManager::tunbind).defaultValues("");50 SetConsoleCommand(__CC_keybind_name, &KeyBinderManager::keybind).defaultValues(""); 51 SetConsoleCommand(__CC_tkeybind_name, &KeyBinderManager::tkeybind).defaultValues(""); 52 SetConsoleCommand(__CC_unbind_name, &KeyBinderManager::unbind).defaultValues(""); 53 SetConsoleCommand(__CC_tunbind_name, &KeyBinderManager::tunbind).defaultValues(""); 54 54 55 55 KeyBinderManager::KeyBinderManager() … … 62 62 63 63 // keybind console commands 64 _ModifyConsoleCommand(__CC_keybind_name ).setObject(this);65 _ModifyConsoleCommand(__CC_tkeybind_name).setObject(this);66 _ModifyConsoleCommand(__CC_unbind_name ).setObject(this);67 _ModifyConsoleCommand(__CC_tunbind_name ).setObject(this);64 ModifyConsoleCommand(__CC_keybind_name ).setObject(this); 65 ModifyConsoleCommand(__CC_tkeybind_name).setObject(this); 66 ModifyConsoleCommand(__CC_unbind_name ).setObject(this); 67 ModifyConsoleCommand(__CC_tunbind_name ).setObject(this); 68 68 69 69 // Load default key binder … … 78 78 79 79 // Reset console commands 80 _ModifyConsoleCommand(__CC_keybind_name ).setObject(0);81 _ModifyConsoleCommand(__CC_tkeybind_name).setObject(0);82 _ModifyConsoleCommand(__CC_unbind_name ).setObject(0);83 _ModifyConsoleCommand(__CC_tunbind_name ).setObject(0);80 ModifyConsoleCommand(__CC_keybind_name ).setObject(0); 81 ModifyConsoleCommand(__CC_tkeybind_name).setObject(0); 82 ModifyConsoleCommand(__CC_unbind_name ).setObject(0); 83 ModifyConsoleCommand(__CC_tunbind_name ).setObject(0); 84 84 } 85 85
Note: See TracChangeset
for help on using the changeset viewer.