GlobeEngine
ExoViewerInputControl.h
Go to the documentation of this file.
1 //
2 // ExoViewerInputControl.h
3 //
4 // Created by Mathias Thöny on 27.12.11.
5 // Copyright (c) 2011 University of Zurich. All rights reserved.
6 //
7 
8 #ifndef ExoViewer_ExoViewerInputControl_h
9 #define ExoViewer_ExoViewerInputControl_h
10 
11 #include "OpenGL_Includes.h"
12 #include <vmmlib/vmmlib.hpp>
13 #include "InputControl.h"
14 #include "FlightCamera.h"
15 #include "ArcBallCamera.h"
16 #include "ExoEngine.h"
17 
18 namespace geExoViewer {
20  {
21  public:
24 
25  void clear();
26  void create(geAstro::ExoEngine* _game);
27 
28  void mouseMoveWhilePressedEvent(int button, int x, int y);
29 
30  void mouseButtonEvent(int button, int state, int x, int y);
31  void wheelEvent(float _input);
32 
33  void keyPressEvent(unsigned char pKey);
34  void keyReleaseEvent(unsigned char pKey);
35 
36  void mouseMoveStopEvent();
37  void mouseMoveEvent(int x, int y);
38 
39  void button_callback_funtion(int _value);
40  void moveToLocation(vmml::Vector2d _delta);
41 
42  private:
43  void setMoveCommand(int _camID, int _command);
44  void setCommand(int _camID, int _command, float _value);
45 
46  bool pickOngoing;
47  bool markOngoing;
48  };
49 }
50 #endif
void moveToLocation(vmml::Vector2d _delta)
void keyPressEvent(unsigned char pKey)
Definition: ExoViewerInputControl.cpp:61
Definition: ExoViewerInputControl.h:19
void button_callback_funtion(int _value)
void keyReleaseEvent(unsigned char pKey)
Definition: ExoViewerInputControl.cpp:73
ExoViewerInputControl()
Definition: ExoViewerInputControl.h:22
void mouseMoveEvent(int x, int y)
Definition: ExoViewerInputControl.cpp:82
~ExoViewerInputControl()
Definition: ExoViewerInputControl.h:23
void wheelEvent(float _input)
Definition: ExoViewerInputControl.cpp:30
void mouseButtonEvent(int button, int state, int x, int y)
Definition: ExoViewerInputControl.cpp:155
void mouseMoveWhilePressedEvent(int button, int x, int y)
Definition: ExoViewerInputControl.cpp:88
void clear()
Definition: ExoViewerInputControl.cpp:6
Definition: InputControl.h:16
void create(geAstro::ExoEngine *_game)
Definition: ExoViewerInputControl.cpp:14
void mouseMoveStopEvent()
Definition: ExoViewerInputControl.cpp:78
Definition: ExoEngine.h:50
Definition: BodySelectionDialog.h:12