Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 3, 2008, 10:23:37 AM (16 years ago)
Author:
rgrieder
Message:
  • not really done a lot, but svn create patch doesn't work with renamed files
File:
1 moved

Legend:

Unmodified
Added
Removed
  • code/branches/input/src/orxonox/core/InputHandler.h

    r971 r973  
    2828/**
    2929 @file
    30  @brief InputHandlerBuffer class declaration
     30 @brief Different implementations of input processing.
    3131 */
    3232
    33 #ifndef _InputHandlerBase_H__
    34 #define _InputHandlerBase_H__
     33#ifndef _InputHandler_H__
     34#define _InputHandler_H__
     35
     36#include <OIS/OIS.h>
    3537
    3638#include "CorePrereqs.h"
     
    3941{
    4042  /**
    41     @brief
     43    @brief Captures mouse and keyboard input and distributes it to the
     44    GUI.
    4245  */
    43   class InputHandlerBase
     46  class _CoreExport InputHandlerGUI
     47        : public OIS::KeyListener, public OIS::MouseListener
    4448  {
     49  public:
     50    InputHandlerGUI ();
     51    ~InputHandlerGUI();
     52
     53  private:
     54    // input events
     55                bool mousePressed (const OIS::MouseEvent &arg, OIS::MouseButtonID id);
     56                bool mouseReleased(const OIS::MouseEvent &arg, OIS::MouseButtonID id);
     57    bool mouseMoved   (const OIS::MouseEvent &arg);
     58                bool keyPressed   (const OIS::KeyEvent   &arg);
     59                bool keyReleased  (const OIS::KeyEvent   &arg);
    4560  };
     61
     62
     63  /**
     64    @brief Captures mouse and keyboard input while in the actual game mode.
     65    Manages the key bindings.
     66  */
     67  class _CoreExport InputHandlerGame
     68        : public OIS::KeyListener, public OIS::MouseListener
     69  {
     70  public:
     71    InputHandlerGame ();
     72    ~InputHandlerGame();
     73
     74  private:
     75    // input events
     76                bool mousePressed (const OIS::MouseEvent &arg, OIS::MouseButtonID id);
     77                bool mouseReleased(const OIS::MouseEvent &arg, OIS::MouseButtonID id);
     78    bool mouseMoved   (const OIS::MouseEvent &arg);
     79                bool keyPressed   (const OIS::KeyEvent   &arg);
     80                bool keyReleased  (const OIS::KeyEvent   &arg);
     81  };
     82
    4683}
    4784
    48 #endif /* _InputHandlerBase_H__ */
     85#endif /* _InputHandler_H__ */
Note: See TracChangeset for help on using the changeset viewer.