GlobeEngine
MobileViewerInputControl.h
Go to the documentation of this file.
1 //
2 // CoreViewerInputControl.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 MobileViewerInputControl_h
9 #define MobileViewerInputControl_h
10 
11 #include "OpenGL_Includes.h"
12 #include <vmmlib/matrix.hpp>
13 
14 class MobileCoreEngine;
15 
17 {
18  public:
21 
22  void clear();
23  void destroy();
24  void create(MobileCoreEngine* _game);
25 
26  void keyPressEvent(unsigned char pKey);
27  void keyReleaseEvent(unsigned char pKey);
28  void mouseMoveStopEvent();
29  void mouseMoveWhilePressedEvent(int button, int x, int y);
30  void mouseMoveEvent(int x, int y);
31  void mouseButtonEvent(int button, int state, int x, int y);
32  void button_callback_funtion(int _value);
33 
34  void wheelEvent(float _input);
35  void moveToLocation( vmml::Vector2d _delta);
36 
37  private:
38  void setMoveCommand(int _camID, int _command);
39  void setCommand(int _camID, int _command, float _value);
40  MobileCoreEngine* game;
41 
42  vmml::Vector2f preMoveRotation;
43  vmml::Vector2f postMoveRotation;
44  vmml::Vector2f changeRotation;
45 
46  vmml::Vector2f preMoveShift;
47  vmml::Vector2f postMoveShift;
48  vmml::Vector2f changeShift;
49 
50  bool mouseButtonHold;
51 
52 };
53 
54 #endif
void mouseButtonEvent(int button, int state, int x, int y)
Definition: MobileViewerInputControl.cpp:126
void clear()
Definition: MobileViewerInputControl.cpp:6
void mouseMoveStopEvent()
Definition: MobileViewerInputControl.cpp:72
void keyReleaseEvent(unsigned char pKey)
Definition: MobileViewerInputControl.cpp:67
void moveToLocation(vmml::Vector2d _delta)
Definition: MobileViewerInputControl.cpp:46
void keyPressEvent(unsigned char pKey)
Definition: MobileViewerInputControl.cpp:63
void mouseMoveWhilePressedEvent(int button, int x, int y)
Definition: MobileViewerInputControl.cpp:82
void wheelEvent(float _input)
Definition: MobileViewerInputControl.cpp:34
~MobileViewerInputControl()
Definition: MobileViewerInputControl.h:20
void destroy()
Definition: MobileViewerInputControl.cpp:12
Definition: MobileCoreEngine.h:28
void mouseMoveEvent(int x, int y)
Definition: MobileViewerInputControl.cpp:77
Definition: MobileViewerInputControl.h:16
void button_callback_funtion(int _value)
MobileViewerInputControl()
Definition: MobileViewerInputControl.h:19
void create(MobileCoreEngine *_game)
Definition: MobileViewerInputControl.cpp:17