Changeset 6791 for code/branches/chat
- Timestamp:
- Apr 26, 2010, 4:35:31 PM (15 years ago)
- Location:
- code/branches/chat
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/chat/data/defaultConfig/keybindings.ini
r6417 r6791 7 7 KeyApostrophe= 8 8 KeyApps= 9 KeyB =9 KeyB = 10 10 KeyBack= 11 11 KeyBackslash= -
code/branches/chat/src/orxonox/ChatInputHandler.cc
r6788 r6791 37 37 /* singleton */ 38 38 ManageScopedSingleton( ChatInputHandler, ScopeID::Graphics, false ); 39 SetConsoleCommandAlias( ChatInputHandler, activate_static, "startchat", 40 true ); 39 41 40 42 /* constructor */ … … 50 52 51 53 /* configure the input buffer */ 52 54 configureInputBuffer(); 53 55 54 56 this->inputState = InputManager::getInstance().createInputState( "chatinput", false, false, InputStatePriority::Dynamic ); 55 57 this->inputState->setKeyHandler(this->inpbuf); 56 58 57 / * set console shortcut */58 this->getIdentifier()->addConsoleCommand(createConsoleCommand(createFunctor(59 &ChatInputHandler::activate, this), "startchat"), false);59 //[> set console shortcut <] 60 //this->getIdentifier()->addConsoleCommand(createConsoleCommand(createFunctor( 61 //&ChatInputHandler::activate, this), "startchat"), false); 60 62 } 61 63 … … 88 90 89 91 /* activate, deactivate */ 92 void ChatInputHandler::activate_static() 93 { ChatInputHandler::getInstance().activate(); } 94 90 95 void ChatInputHandler::activate() 91 96 { -
code/branches/chat/src/orxonox/ChatInputHandler.h
r6788 r6791 39 39 /* project includes */ 40 40 #include <OrxonoxPrereqs.h> 41 #include <core/BaseObject.h> 42 #include <core/PathConfig.h> 43 41 44 #include "core/input/InputBuffer.h" 42 45 #include "core/input/InputManager.h" 43 46 #include "core/input/InputState.h" 47 44 48 #include "../libraries/network/Host.h" 45 #include <core/BaseObject.h>46 #include <PlayerManager.h>47 #include <infos/PlayerInfo.h>48 #include <network/ChatListener.h>49 #include <core/PathConfig.h>50 49 #include <util/Singleton.h> 51 50 … … 78 77 79 78 /* start listening, stop listening */ 79 static void activate_static(); 80 80 void activate(); 81 81 void deactivate();
Note: See TracChangeset
for help on using the changeset viewer.