Changeset 3310 for code/branches/core4/src/core
- Timestamp:
- Jul 19, 2009, 12:27:53 PM (15 years ago)
- Location:
- code/branches/core4/src/core/input
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/core/input/InputDevice.h
r3286 r3310 181 181 protected: 182 182 //! Common code for all button pressed events (updates pressed buttons list and calls the input states) 183 void buttonPressed(ButtonTypeParam button)183 FORCEINLINE void buttonPressed(ButtonTypeParam button) 184 184 { 185 185 // check whether the button already is in the list (can happen when focus was lost) … … 198 198 199 199 //! Common code for all button released events (updates pressed buttons list and calls the input states) 200 void buttonReleased(ButtonTypeParam button)200 FORCEINLINE void buttonReleased(ButtonTypeParam button) 201 201 { 202 202 // remove the button from the pressedButtons_ list -
code/branches/core4/src/core/input/InputManager.cc
r3291 r3310 177 177 paramList.insert(std::make_pair(std::string("WINDOW"), windowHndStr.str())); 178 178 #if defined(ORXONOX_PLATFORM_WINDOWS) 179 //paramList.insert(std::make_pair(std::string("w32_mouse"), std::string("DISCL_NONEXCLUSIVE")));180 //paramList.insert(std::make_pair(std::string("w32_mouse"), std::string("DISCL_FOREGROUND")));181 //paramList.insert(std::make_pair(std::string("w32_keyboard"), std::string("DISCL_NONEXCLUSIVE")));182 //paramList.insert(std::make_pair(std::string("w32_keyboard"), std::string("DISCL_FOREGROUND")));179 paramList.insert(std::make_pair(std::string("w32_mouse"), std::string("DISCL_NONEXCLUSIVE"))); 180 paramList.insert(std::make_pair(std::string("w32_mouse"), std::string("DISCL_FOREGROUND"))); 181 paramList.insert(std::make_pair(std::string("w32_keyboard"), std::string("DISCL_NONEXCLUSIVE"))); 182 paramList.insert(std::make_pair(std::string("w32_keyboard"), std::string("DISCL_FOREGROUND"))); 183 183 #elif defined(ORXONOX_PLATFORM_LINUX) 184 184 paramList.insert(std::make_pair(std::string("XAutoRepeatOn"), std::string("true"))); -
code/branches/core4/src/core/input/InputState.h
r3292 r3310 174 174 }; 175 175 176 inlinevoid InputState::update(float dt)176 FORCEINLINE void InputState::update(float dt) 177 177 { 178 178 for (unsigned int i = 0; i < handlers_.size(); ++i) … … 181 181 } 182 182 183 inlinevoid InputState::update(float dt, unsigned int device)183 FORCEINLINE void InputState::update(float dt, unsigned int device) 184 184 { 185 185 switch (device) … … 203 203 204 204 template <typename EventType, class Traits> 205 inlinevoid InputState::buttonEvent(unsigned int device, const typename Traits::ButtonTypeParam button)205 FORCEINLINE void InputState::buttonEvent(unsigned int device, const typename Traits::ButtonTypeParam button) 206 206 { 207 207 assert(device < handlers_.size()); … … 210 210 } 211 211 212 inlinevoid InputState::mouseMoved(IntVector2 abs, IntVector2 rel, IntVector2 clippingSize)212 FORCEINLINE void InputState::mouseMoved(IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) 213 213 { 214 214 if (handlers_[mouseIndex_s] != NULL) … … 216 216 } 217 217 218 inlinevoid InputState::mouseScrolled(int abs, int rel)218 FORCEINLINE void InputState::mouseScrolled(int abs, int rel) 219 219 { 220 220 if (handlers_[mouseIndex_s] != NULL) … … 222 222 } 223 223 224 inlinevoid InputState::joyStickAxisMoved(unsigned int device, unsigned int axis, float value)224 FORCEINLINE void InputState::joyStickAxisMoved(unsigned int device, unsigned int axis, float value) 225 225 { 226 226 assert(device < handlers_.size()); -
code/branches/core4/src/core/input/Mouse.cc
r3293 r3310 45 45 { 46 46 RegisterRootObject(Mouse); 47 this->windowResized(this->getWindow Height(), this->getWindowHeight());47 this->windowResized(this->getWindowWidth(), this->getWindowHeight()); 48 48 49 49 #ifdef ORXONOX_PLATFORM_LINUX
Note: See TracChangeset
for help on using the changeset viewer.