Changeset 3327 for code/trunk/src/core/input/JoyStickQuantityListener.h
- 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.h
r3276 r3327 40 40 namespace orxonox 41 41 { 42 //! Derive from this class to get informed when joy sticks get added/removed 42 43 class _CoreExport JoyStickQuantityListener : virtual public OrxonoxClass 43 44 { 44 public: 45 friend class InputManager; 46 protected: 45 47 JoyStickQuantityListener(); 46 48 virtual ~JoyStickQuantityListener() { } 47 49 48 virtual void JoyStickQuantityChanged(unsigned int value) = 0; 50 //! Returns a list with all JoySticks currently loaded 51 const std::vector<JoyStick*>& getJoyStickList() const { return joyStickList_s; } 52 53 private: 54 //! Called whenever joy sticks get added/removed 55 virtual void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) = 0; 56 57 static void changeJoyStickQuantity(const std::vector<JoyStick*>& joyStickList); 58 59 //! Static variable that holds the latest distributed information 60 static std::vector<JoyStick*> joyStickList_s; 49 61 }; 50 62 }
Note: See TracChangeset
for help on using the changeset viewer.