Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 13, 2009, 6:41:58 PM (15 years ago)
Author:
rgrieder
Message:

Shoved some code around to reduce contents of 'global' InputPrereqs.h

File:
1 edited

Legend:

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

    r3275 r3285  
    3131
    3232#include "InputPrereqs.h"
     33#include "InputHandler.h"
    3334#include "InputDevice.h"
    3435
    3536namespace orxonox
    3637{
     38    struct KeyboardTraits
     39    {
     40        typedef Keyboard DeviceClass;
     41        typedef OIS::Keyboard OISDeviceClass;
     42        typedef KeyEvent ButtonType;
     43        typedef KeyEvent& ButtonTypeParam;
     44        static const OIS::Type OISDeviceValue = OIS::OISKeyboard;
     45    };
     46
    3747    /**
    3848    @brief
     
    6373        bool keyReleased(const OIS::KeyEvent& arg);
    6474
     75        static std::string getClassNameImpl() { return "Keyboard"; }
     76
    6577        //! Bit mask representing keyboard modifiers
    6678        int modifiers_;
Note: See TracChangeset for help on using the changeset viewer.