Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 12, 2009, 4:12:04 PM (15 years ago)
Author:
rgrieder
Message:

Added a few more generic parts to the input library:

  • Created Mouse and Keyboard to join JoyStick and provided them with a templated base class (InputDeviceTemplated) that does most of the work (reduces quite some redundancy)
  • Created InputPrereqs.h from InputInterfaces.h and destroyed the latter
  • Exported InputHandler to its own file and replaced KeyHandler, MouseHandler and JoyStickHandler with the single InputHandler.
  • Deleted the SimpleInputState: There is only one class now which fulfills all our needs.

In general there is now less code and the code itself has more 'pluses'. However I haven't really thrown away any feature at all.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • code/branches/core4/src/core/input/JoyStickQuantityListener.h

    r3273 r3274  
    3232*/
    3333
    34 #ifndef _JoyStickDeviceNumberListener_H__
    35 #define _JoyStickDeviceNumberListener_H__
     34#ifndef _JoyStickQuantityListener_H__
     35#define _JoyStickQuantityListener_H__
    3636
    37 #include "core/CorePrereqs.h"
     37#include "InputPrereqs.h"
    3838#include "core/OrxonoxClass.h"
    3939
    4040namespace orxonox
    4141{
    42     class _CoreExport JoyStickDeviceNumberListener : virtual public OrxonoxClass
     42    class _CoreExport JoyStickQuantityListener : virtual public OrxonoxClass
    4343    {
    4444    public:
    45         JoyStickDeviceNumberListener();
    46         virtual ~JoyStickDeviceNumberListener() { }
     45        JoyStickQuantityListener();
     46        virtual ~JoyStickQuantityListener() { }
    4747
    48         virtual void JoyStickDeviceNumberChanged(unsigned int value) = 0;
     48        virtual void JoyStickQuantityChanged(unsigned int value) = 0;
    4949    };
    5050}
    5151
    52 #endif /* _JoyStickDeviceNumberListener_H__ */
     52#endif /* _JoyStickQuantityListener_H__ */
Note: See TracChangeset for help on using the changeset viewer.