Changeset 1555
- Timestamp:
- Jun 6, 2008, 9:05:27 PM (17 years ago)
- Location:
- code/trunk
- Files:
-
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/CMakeLists.txt
r1535 r1555 63 63 #Performs the search and sets the variables 64 64 FIND_PACKAGE(OGRE) 65 #FIND_PACKAGE(OIS)66 65 # FIND_PACKAGE(CEGUI) 67 66 # FIND_PACKAGE(CEGUI_OGRE) 68 67 FIND_PACKAGE(ENet) 69 68 FIND_PACKAGE(Boost REQUIRED thread filesystem) 70 #FIND_PACKAGE(Boost REQUIRED filesystem)71 69 FIND_PACKAGE(OpenAL) 72 70 FIND_PACKAGE(ALUT) … … 80 78 LINK_DIRECTORIES( 81 79 ${OGRE_LIB_DIR} 82 # ${OIS_LIB_DIR}83 80 # ${CEGUI_LIB_DIR} ${CEGUI_OGRE_LIB_DIR} 84 81 ${ENet_LIBRARY} … … 91 88 INCLUDE_DIRECTORIES( 92 89 ${OGRE_INCLUDE_DIR} 93 # ${OIS_INCLUDE_DIR}94 90 # ${CEGUI_INCLUDE_DIR} ${CEGUI_OGRE_INCLUDE_DIR} 95 91 ${ENet_INCLUDE_DIR} -
code/trunk/src/CMakeLists.txt
r1505 r1555 1 1 INCLUDE_DIRECTORIES(.) 2 INCLUDE_DIRECTORIES(..) 2 3 INCLUDE_DIRECTORIES(orxonox) 3 4 INCLUDE_DIRECTORIES(tolua) 4 INCLUDE_DIRECTORIES(ois)5 5 6 6 ADD_SUBDIRECTORY(cpptcl) -
code/trunk/src/core/CMakeLists.txt
r1543 r1555 65 65 ${OGRE_LIBRARIES} 66 66 cpptcl 67 ois_orxonox 67 68 tinyxml 68 69 tolualib 69 ois70 70 util 71 71 ${Boost_thread_LIBRARIES} -
code/trunk/src/core/Script.cc
r1505 r1555 39 39 } 40 40 41 #include "tolua ++.h"41 #include "tolua/tolua++.h" 42 42 #include "tolua/tolua_bind.h" 43 43 -
code/trunk/src/core/input/InputInterfaces.h
r1535 r1555 37 37 #include "core/CorePrereqs.h" 38 38 39 #include "ois/OIS.h" 39 #include "src/ois/OISKeyboard.h" 40 #include "src/ois/OISMouse.h" 41 #include "src/ois/OISJoystick.h" 40 42 #include "util/Math.h" 41 43 … … 47 49 enum Enum 48 50 { 49 Unassigned = OIS::KC_UNASSIGNED, 50 Escape = OIS::KC_ESCAPE, 51 NumRow1 = OIS::KC_1, 52 NumRow2 = OIS::KC_2, 53 NumRow3 = OIS::KC_3, 54 NumRow4 = OIS::KC_4, 55 NumRow5 = OIS::KC_5, 56 NumRow6 = OIS::KC_6, 57 NumRow7 = OIS::KC_7, 58 NumRow8 = OIS::KC_8, 59 NumRow9 = OIS::KC_9, 60 NumRow0 = OIS::KC_0, 51 Unassigned = OIS::KC_UNASSIGNED, 52 Escape = OIS::KC_ESCAPE, 53 NumRow1 = OIS::KC_1, 54 NumRow2 = OIS::KC_2, 55 NumRow3 = OIS::KC_3, 56 NumRow4 = OIS::KC_4, 57 NumRow5 = OIS::KC_5, 58 NumRow6 = OIS::KC_6, 59 NumRow7 = OIS::KC_7, 60 NumRow8 = OIS::KC_8, 61 NumRow9 = OIS::KC_9, 62 NumRow0 = OIS::KC_0, 61 63 Minus = OIS::KC_MINUS, // - on main keyboard 62 Equals = OIS::KC_EQUALS, 64 Equals = OIS::KC_EQUALS, 63 65 Back = OIS::KC_BACK, // backspace 64 Tab = OIS::KC_TAB, 65 Q = OIS::KC_Q, 66 W = OIS::KC_W, 67 E = OIS::KC_E, 68 R = OIS::KC_R, 69 T = OIS::KC_T, 70 Y = OIS::KC_Y, 71 U = OIS::KC_U, 72 I = OIS::KC_I, 73 O = OIS::KC_O, 74 P = OIS::KC_P, 75 LeftBracket = OIS::KC_LBRACKET, 76 RightBracket = OIS::KC_RBRACKET, 66 Tab = OIS::KC_TAB, 67 Q = OIS::KC_Q, 68 W = OIS::KC_W, 69 E = OIS::KC_E, 70 R = OIS::KC_R, 71 T = OIS::KC_T, 72 Y = OIS::KC_Y, 73 U = OIS::KC_U, 74 I = OIS::KC_I, 75 O = OIS::KC_O, 76 P = OIS::KC_P, 77 LeftBracket = OIS::KC_LBRACKET, 78 RightBracket = OIS::KC_RBRACKET, 77 79 Return = OIS::KC_RETURN, // Enter on main keyboard 78 LeftControl = OIS::KC_LCONTROL, 79 A = OIS::KC_A, 80 S = OIS::KC_S, 81 D = OIS::KC_D, 82 F = OIS::KC_F, 83 G = OIS::KC_G, 84 H = OIS::KC_H, 85 J = OIS::KC_J, 86 K = OIS::KC_K, 87 L = OIS::KC_L, 88 Semicolon = OIS::KC_SEMICOLON, 89 Apostrophe = OIS::KC_APOSTROPHE, 80 LeftControl = OIS::KC_LCONTROL, 81 A = OIS::KC_A, 82 S = OIS::KC_S, 83 D = OIS::KC_D, 84 F = OIS::KC_F, 85 G = OIS::KC_G, 86 H = OIS::KC_H, 87 J = OIS::KC_J, 88 K = OIS::KC_K, 89 L = OIS::KC_L, 90 Semicolon = OIS::KC_SEMICOLON, 91 Apostrophe = OIS::KC_APOSTROPHE, 90 92 Grave = OIS::KC_GRAVE, // accent 91 LeftShift = OIS::KC_LSHIFT, 92 Backslash = OIS::KC_BACKSLASH, 93 Z = OIS::KC_Z, 94 X = OIS::KC_X, 95 C = OIS::KC_C, 96 V = OIS::KC_V, 97 B = OIS::KC_B, 98 N = OIS::KC_N, 99 M = OIS::KC_M, 100 Comma = OIS::KC_COMMA, 93 LeftShift = OIS::KC_LSHIFT, 94 Backslash = OIS::KC_BACKSLASH, 95 Z = OIS::KC_Z, 96 X = OIS::KC_X, 97 C = OIS::KC_C, 98 V = OIS::KC_V, 99 B = OIS::KC_B, 100 N = OIS::KC_N, 101 M = OIS::KC_M, 102 Comma = OIS::KC_COMMA, 101 103 Period = OIS::KC_PERIOD, // . on main keyboard 102 104 Slash = OIS::KC_SLASH, // / on main keyboard 103 RightShift = OIS::KC_RSHIFT, 105 RightShift = OIS::KC_RSHIFT, 104 106 Multiply = OIS::KC_MULTIPLY, // * on numeric keypad 105 107 LeftAlt = OIS::KC_LMENU, // left Alt 106 Space = OIS::KC_SPACE, 107 CapsLock = OIS::KC_CAPITAL, 108 F1 = OIS::KC_F1, 109 F2 = OIS::KC_F2, 110 F3 = OIS::KC_F3, 111 F4 = OIS::KC_F4, 112 F5 = OIS::KC_F5, 113 F6 = OIS::KC_F6, 114 F7 = OIS::KC_F7, 115 F8 = OIS::KC_F8, 116 F9 = OIS::KC_F9, 117 F10 = OIS::KC_F10, 118 Numlock = OIS::KC_NUMLOCK, 108 Space = OIS::KC_SPACE, 109 CapsLock = OIS::KC_CAPITAL, 110 F1 = OIS::KC_F1, 111 F2 = OIS::KC_F2, 112 F3 = OIS::KC_F3, 113 F4 = OIS::KC_F4, 114 F5 = OIS::KC_F5, 115 F6 = OIS::KC_F6, 116 F7 = OIS::KC_F7, 117 F8 = OIS::KC_F8, 118 F9 = OIS::KC_F9, 119 F10 = OIS::KC_F10, 120 Numlock = OIS::KC_NUMLOCK, 119 121 Scrolllock = OIS::KC_SCROLL, // Scroll Lock 120 Numpad7 = OIS::KC_NUMPAD7, 121 Numpad8 = OIS::KC_NUMPAD8, 122 Numpad9 = OIS::KC_NUMPAD9, 122 Numpad7 = OIS::KC_NUMPAD7, 123 Numpad8 = OIS::KC_NUMPAD8, 124 Numpad9 = OIS::KC_NUMPAD9, 123 125 NumpadSubtract= OIS::KC_SUBTRACT, // - on numeric keypad 124 Numpad4 = OIS::KC_NUMPAD4, 125 Numpad5 = OIS::KC_NUMPAD5, 126 Numpad6 = OIS::KC_NUMPAD6, 126 Numpad4 = OIS::KC_NUMPAD4, 127 Numpad5 = OIS::KC_NUMPAD5, 128 Numpad6 = OIS::KC_NUMPAD6, 127 129 NumpadAdd = OIS::KC_ADD, // + on numeric keypad 128 Numpad1 = OIS::KC_NUMPAD1, 129 Numpad2 = OIS::KC_NUMPAD2, 130 Numpad3 = OIS::KC_NUMPAD3, 131 Numpad0 = OIS::KC_NUMPAD0, 130 Numpad1 = OIS::KC_NUMPAD1, 131 Numpad2 = OIS::KC_NUMPAD2, 132 Numpad3 = OIS::KC_NUMPAD3, 133 Numpad0 = OIS::KC_NUMPAD0, 132 134 NumpadPeriod = OIS::KC_DECIMAL, // . on numeric keypad 133 135 LessThan = OIS::KC_OEM_102, // < > | on UK/Germany keyboards 134 F11 = OIS::KC_F11, 135 F12 = OIS::KC_F12, 136 F11 = OIS::KC_F11, 137 F12 = OIS::KC_F12, 136 138 F13 = OIS::KC_F13, // (NEC PC98) 137 139 F14 = OIS::KC_F14, // (NEC PC98) … … 154 156 NextTrack = OIS::KC_NEXTTRACK, // Next Track 155 157 NumpadEnter = OIS::KC_NUMPADENTER, // Enter on numeric keypad 156 RightControl = OIS::KC_RCONTROL, 158 RightControl = OIS::KC_RCONTROL, 157 159 Mute = OIS::KC_MUTE, // Mute 158 160 Calculator = OIS::KC_CALCULATOR, // Calculator … … 164 166 NumpadComma = OIS::KC_NUMPADCOMMA, // , on numeric keypad (NEC PC98) 165 167 Divide = OIS::KC_DIVIDE, // / on numeric keypad 166 SYSRQ = OIS::KC_SYSRQ, 168 SYSRQ = OIS::KC_SYSRQ, 167 169 RightAlt = OIS::KC_RMENU, // right Alt 168 170 Pause = OIS::KC_PAUSE, // Pause … … 254 256 std::vector<Vector3> mVectors; 255 257 };*/ 256 258 257 259 /** 258 260 * Helper struct to determine which handlers of an object (can implement -
code/trunk/src/core/input/InputManager.cc
r1537 r1555 36 36 37 37 #include <limits.h> 38 38 39 #include "core/CoreIncludes.h" 39 40 #include "core/ConfigValueIncludes.h" … … 42 43 #include "core/ConsoleCommand.h" 43 44 #include "core/Shell.h" // hack! 45 44 46 #include "InputBuffer.h" 45 47 #include "KeyBinder.h" 46 48 #include "KeyDetector.h" 47 49 #include "CalibratorCallback.h" 50 51 #include "src/ois/OISException.h" 52 #include "src/ois/OISInputManager.h" 48 53 49 54 namespace orxonox … … 650 655 activeHandlers_[iHandler].first->tickInput(dt, activeHandlers_[iHandler].second); 651 656 } 652 657 653 658 void InputManager::_completeCalibration() 654 659 { -
code/trunk/src/core/input/InputManager.h
r1535 r1555 41 41 #include <vector> 42 42 43 #include "ois/OIS.h"44 43 #include "util/Math.h" 45 44 #include "core/OrxonoxClass.h" -
code/trunk/src/ois/CMakeLists.txt
r1505 r1555 1 INCLUDE_DIRECTORIES(.) 2 1 3 SET( OIS_SRC_FILES 2 4 OISEffect.cpp … … 36 38 ENDIF (WIN32) 37 39 38 ADD_LIBRARY( ois SHARED ${OIS_SRC_FILES} )40 ADD_LIBRARY( ois_orxonox SHARED ${OIS_SRC_FILES} ) 39 41 40 42 IF(WIN32) 41 43 LINK_DIRECTORIES(${DirectX_LIB_DIR}) 42 TARGET_LINK_LIBRARIES( ois 44 TARGET_LINK_LIBRARIES( ois_orxonox 43 45 dxguid 44 46 dinput8 -
code/trunk/src/orxonox/CMakeLists.txt
r1553 r1555 78 78 tinyxml 79 79 tolualib 80 ois 80 ois_orxonox 81 81 util 82 82 core -
code/trunk/src/orxonox/tools/ParticleInterface.cc
r1553 r1555 39 39 40 40 #include "GraphicsEngine.h" 41 #include "Orxonox.h" 41 42 #include "util/Convert.h" 42 43 … … 50 51 this->sceneNode_ = 0; 51 52 this->particleSystem_ = GraphicsEngine::getSingleton().getSceneManager()->createParticleSystem("particles" + getConvertedValue<unsigned int, std::string>(ParticleInterface::counter_s++), templateName); 53 this->particleSystem_->setSpeedFactor(Orxonox::getSingleton()->getTimeFactor()); 52 54 } 53 55 … … 138 140 void ParticleInterface::setSpeedFactor(float factor) 139 141 { 140 this->particleSystem_->setSpeedFactor( factor);142 this->particleSystem_->setSpeedFactor(Orxonox::getSingleton()->getTimeFactor() * factor); 141 143 } 142 144 float ParticleInterface::getSpeedFactor() const
Note: See TracChangeset
for help on using the changeset viewer.