GlobeEngine
HikingViewerInputControl.h
Go to the documentation of this file.
1 //
2 // HikingViewerInputControl.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 HikingEngine_HikingViewerInputControl_h
9 #define HikingEngine_HikingViewerInputControl_h
10 
11 #include "OpenGL_Includes.h"
12 #include <vmmlib/matrix.hpp>
13 #include "InputControl.h"
14 
15 namespace geHikingViewer {
16 
18  {
19  public:
22 
23  void clear();
24  void mouseMoveWhilePressedEvent(int button, int x, int y);
25  void mouseButtonEvent(int button, int state, int x, int y);
26  void wheelEvent(float _input);
27  void keyPressEvent(unsigned char pKey);
28  void keyReleaseEvent(unsigned char pKey);
29  void mouseMoveStopEvent();
30  void mouseMoveEvent(int x, int y);
31  void moveToLocation( vmml::Vector2d _delta);
32 
33  private:
34  void setMoveCommand(int _camID, int _command);
35  void setCommand(int _camID, int _command, float _value);
36  vmml::Vector2f oldMousePosition;
37  int mouseX;
38  int mouseY;
39 
40  };
41 }
42 #endif
void wheelEvent(float _input)
Definition: HikingViewerInputControl.cpp:26
void mouseMoveEvent(int x, int y)
Definition: HikingViewerInputControl.cpp:151
void mouseButtonEvent(int button, int state, int x, int y)
Definition: HikingViewerInputControl.cpp:249
~HikingViewerInputControl()
Definition: HikingViewerInputControl.h:21
void mouseMoveWhilePressedEvent(int button, int x, int y)
Definition: HikingViewerInputControl.cpp:158
Definition: HikingComposition.h:14
HikingViewerInputControl()
Definition: HikingViewerInputControl.h:20
void keyReleaseEvent(unsigned char pKey)
Definition: HikingViewerInputControl.cpp:139
void keyPressEvent(unsigned char pKey)
Definition: HikingViewerInputControl.cpp:67
Definition: HikingViewerInputControl.h:17
void clear()
Definition: HikingViewerInputControl.cpp:5
void mouseMoveStopEvent()
Definition: HikingViewerInputControl.cpp:146
Definition: InputControl.h:16
void moveToLocation(vmml::Vector2d _delta)
Definition: HikingViewerInputControl.cpp:48