SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SLInputEventInterface.h
Go to the documentation of this file.
1 /**
2  * \file SLInputEventInterface.h
3  * \date January 2015
4  * \authors Marc Wacker, Marcus Hudritsch
5  * \copyright http://opensource.org/licenses/GPL-3.0
6  * \remarks Please use clangformat to format the code. See more code style on
7  * https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
8 */
9 
10 #ifndef SL_INPUTEVENTINTERFACE_H
11 #define SL_INPUTEVENTINTERFACE_H
12 
13 #include <string>
14 #include <SLEnums.h>
15 
16 //-----------------------------------------------------------------------------
17 class SLInputManager;
18 //-----------------------------------------------------------------------------
20 {
21 public:
23 
24  void resize(int sceneViewIndex, int width, int height);
25  void updateScr2fb(int sceneViewIndex);
26 
27  void mouseDown(int sceneViewIndex, SLMouseButton button, int x, int y, SLKey modifier);
28  void mouseMove(int sceneViewIndex, int x, int y);
29  void mouseUp(int sceneViewIndex, SLMouseButton button, int x, int y, SLKey modifier);
30  void doubleClick(int sceneViewIndex, SLMouseButton button, int x, int y, SLKey modifier);
31  void touch2Down(int sceneViewIndex, int x1, int y1, int x2, int y2);
32  void touch2Move(int sceneViewIndex, int x1, int y1, int x2, int y2);
33  void touch2Up(int sceneViewIndex, int x1, int y1, int x2, int y2);
34  void mouseWheel(int sceneViewIndex, int pos, SLKey modifier);
35  void keyPress(int sceneViewIndex, SLKey key, SLKey modifier);
36  void keyRelease(int sceneViewIndex, SLKey key, SLKey modifier);
37  void charInput(int sceneViewIndex, unsigned int character);
38  void longTouch(int sceneViewIndex, int x, int y) {}
39  void scrCaptureRequest(int sceneViewIndex, std::string outputPath);
40 
41 private:
43 };
44 //-----------------------------------------------------------------------------
45 #endif
SLMouseButton
Mouse button codes.
Definition: SLEnums.h:98
SLKey
Keyboard key codes enumeration.
Definition: SLEnums.h:16
void touch2Move(int sceneViewIndex, int x1, int y1, int x2, int y2)
void mouseDown(int sceneViewIndex, SLMouseButton button, int x, int y, SLKey modifier)
void keyRelease(int sceneViewIndex, SLKey key, SLKey modifier)
void updateScr2fb(int sceneViewIndex)
void mouseMove(int sceneViewIndex, int x, int y)
void charInput(int sceneViewIndex, unsigned int character)
void resize(int sceneViewIndex, int width, int height)
void mouseWheel(int sceneViewIndex, int pos, SLKey modifier)
void keyPress(int sceneViewIndex, SLKey key, SLKey modifier)
SLInputManager & _inputManager
void touch2Down(int sceneViewIndex, int x1, int y1, int x2, int y2)
void scrCaptureRequest(int sceneViewIndex, std::string outputPath)
void touch2Up(int sceneViewIndex, int x1, int y1, int x2, int y2)
void mouseUp(int sceneViewIndex, SLMouseButton button, int x, int y, SLKey modifier)
void longTouch(int sceneViewIndex, int x, int y)
void doubleClick(int sceneViewIndex, SLMouseButton button, int x, int y, SLKey modifier)
SLInputEventInterface(SLInputManager &inputManager)
SLInputManager. manages system input and custom input devices.