Changeset 6084 for code/trunk
- Timestamp:
- Nov 18, 2009, 11:13:47 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/cmake/SourceFileUtilities.cmake
r5963 r6084 53 53 SET(_include_string "${_include_string}#include \"${_file2}\"\n") 54 54 ENDFOREACH(_file2) 55 IF(EXISTS )55 IF(EXISTS ${_compilation_file}) 56 56 FILE(READ ${_compilation_file} _include_string_file) 57 57 ENDIF() -
code/trunk/src/libraries/core/input/InputManager.h
r5929 r6084 47 47 Manages the input devices (mouse, keyboard, joy sticks) and the input states. 48 48 49 Every input device has its own wrapper class which does the actual y input event49 Every input device has its own wrapper class which does the actually input event 50 50 distribution. The InputManager only creates reloads (on request) those devices. 51 51 … … 58 58 in the InputDevices themselves. 59 59 - The devices_ vector always has at least two elements: Keyboard (first) and mouse. 60 You best access them inte nally with InputDeviceEnumerator::Keyboard/Mouse60 You best access them internally with InputDeviceEnumerator::Keyboard/Mouse 61 61 The first joy stick is accessed with InputDeviceEnumerator::FirstJoyStick. 62 62 - Keyboard construction is mandatory , mouse and joy sticks are not. … … 94 94 95 95 Any InpuStates changes (destroy, enter, leave) and happens here. If a reload request 96 was submitted while updating, the request wil be postponed until the next update call.96 was submitted while updating, the request will be postponed until the next update call. 97 97 */ 98 98 void update(const Clock& time); … … 135 135 @brief 136 136 Activates a specific input state. 137 It might not be actuallyactivated if the priority is too low!137 It might not actually be activated if the priority is too low! 138 138 @return 139 139 False if name was not found, true otherwise. … … 172 172 InputManager(const InputManager&); 173 173 174 // Inte nal methods174 // Internal methods 175 175 void loadDevices(); 176 176 void loadMouse(); -
code/trunk/src/orxonox/Test.cc
r5929 r6084 36 36 namespace orxonox 37 37 { 38 38 CreateFactory ( Test ); 39 39 40 40 SetConsoleCommand(Test, printV1, true).accessLevel(AccessLevel::User); … … 56 56 Test* Test::instance_ = 0; 57 57 58 59 58 Test::Test(BaseObject* creator) : BaseObject(creator), Synchronisable(creator) 59 { 60 60 assert(instance_==0); 61 61 instance_=this; 62 62 RegisterObject ( Test ); 63 63 setConfigValues(); 64 64 registerVariables(); 65 66 65 setSyncMode(0x3); 66 } 67 67 68 69 68 Test::~Test() 69 { 70 70 instance_=0; 71 71 } 72 72 73 74 75 73 void Test::setConfigValues() 74 { 75 SetConfigValue ( u1, 1 )/*.callback ( this, &Test::checkV1 )*/; 76 76 SetConfigValue ( u2, 2 )/*.callback ( this, &Test::checkV2 )*/; 77 77 SetConfigValue ( u3, 3 )/*.callback ( this, &Test::checkV3 )*/; … … 82 82 SetConfigValue ( s3, 3 )/*.callback ( this, &Test::checkV3 )*/; 83 83 SetConfigValue ( s4, 4 )/*.callback ( this, &Test::checkV4 )*/; 84 84 } 85 85 86 86
Note: See TracChangeset
for help on using the changeset viewer.