- Timestamp:
- Oct 17, 2016, 4:35:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/HUD_HS16/src/modules/pickup/PickupManager.cc
r11099 r11240 41 41 #include "network/Host.h" 42 42 #include "network/NetworkFunctionIncludes.h" 43 #include "core/input/KeyBinderManager.h" //for keybinding 44 #include "core/input/KeyBinder.h" //for keybinding 43 45 44 46 #include "infos/PlayerInfo.h" … … 74 76 this->defaultRepresentation_ = new PickupRepresentation(); 75 77 76 orxout( internal_info, context::pickups) << "PickupManager created." << endl;78 orxout() << "PickupManager created." << endl; 77 79 } 78 80 … … 287 289 this->indexes_[pickup] = index; 288 290 this->pickups_[index] = pickup; 291 // TODO: Add pickup keybinding ------------------------------------------- 292 if( KeyBinderManager::exists() ) 293 KeyBinderManager::getInstance().getCurrent()->setBinding("KeyESC", "Keys.KeyNumpad0",true); 294 else 295 orxout() << "Could not create new keybinding because KeyBinderManager doesn't exist." << endl; 296 //---------------------------- 297 289 298 } 290 299 else // If it was dropped, it is removed from the required lists. … … 297 306 this->indexes_.erase(it); 298 307 this->pickups_.erase(index); 308 // TODO: Remove pickup keybinding ------------------------------------ 309 if( KeyBinderManager::exists() ) 310 KeyBinderManager::getInstance().getCurrent()->setBinding("", "Keys.KeyNumpad0",true); 311 else 312 orxout() << "Could not delete old keybinding because KeyBinderManager doesn't exist." << endl; 313 //---------------------------- 299 314 } 300 315
Note: See TracChangeset
for help on using the changeset viewer.