Changeset 3327 for code/trunk/src/core/input/JoyStickQuantityListener.cc
- Timestamp:
- Jul 19, 2009, 5:31:02 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core4 merged: 3269,3271-3275,3278,3285,3290-3294,3310
- Property svn:mergeinfo changed
-
code/trunk/src/core/input/JoyStickQuantityListener.cc
r3276 r3327 27 27 */ 28 28 29 /** 30 @file 31 @brief 32 Implementation of the JoyStickQuantityListener class. 33 */ 29 #include "JoyStickQuantityListener.h" 34 30 35 #include "JoyStickQuantityListener.h"36 31 #include "core/CoreIncludes.h" 32 #include "core/ObjectList.h" 37 33 38 34 namespace orxonox 39 35 { 36 std::vector<JoyStick*> JoyStickQuantityListener::joyStickList_s; 37 40 38 JoyStickQuantityListener::JoyStickQuantityListener() 41 39 { 42 40 RegisterObject(JoyStickQuantityListener); 43 41 } 42 43 //! Calls all registered objects and sets the static variable 44 /*static*/ void JoyStickQuantityListener::changeJoyStickQuantity(const std::vector<JoyStick*>& joyStickList) 45 { 46 joyStickList_s = joyStickList; 47 for (ObjectList<JoyStickQuantityListener>::iterator it = ObjectList<JoyStickQuantityListener>::begin(); it; ++it) 48 it->JoyStickQuantityChanged(joyStickList); 49 } 44 50 }
Note: See TracChangeset
for help on using the changeset viewer.