- Timestamp:
- Aug 28, 2010, 1:51:04 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/input/KeyDetector.cc
r7219 r7236 41 41 42 42 static const std::string __CC_KeyDetector_callback_name = "KeyDetectorKeyPressed"; 43 _DeclareConsoleCommand(__CC_KeyDetector_callback_name, &prototype::void__string);43 DeclareConsoleCommand(__CC_KeyDetector_callback_name, &prototype::void__string); 44 44 45 45 KeyDetector::KeyDetector() … … 48 48 RegisterObject(KeyDetector); 49 49 50 _ModifyConsoleCommand(__CC_KeyDetector_callback_name).setFunction(&KeyDetector::callback, this);50 ModifyConsoleCommand(__CC_KeyDetector_callback_name).setFunction(&KeyDetector::callback, this); 51 51 52 52 this->assignCommands(); … … 62 62 inputState_->setHandler(NULL); 63 63 InputManager::getInstance().destroyState("detector"); 64 _ModifyConsoleCommand(__CC_KeyDetector_callback_name).resetFunction();64 ModifyConsoleCommand(__CC_KeyDetector_callback_name).resetFunction(); 65 65 } 66 66
Note: See TracChangeset
for help on using the changeset viewer.