SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
#include <SLInputEventInterface.h>
Public Member Functions | |
SLInputEventInterface (SLInputManager &inputManager) | |
void | resize (int sceneViewIndex, int width, int height) |
void | updateScr2fb (int sceneViewIndex) |
void | mouseDown (int sceneViewIndex, SLMouseButton button, int x, int y, SLKey modifier) |
void | mouseMove (int sceneViewIndex, int x, int y) |
void | mouseUp (int sceneViewIndex, SLMouseButton button, int x, int y, SLKey modifier) |
void | doubleClick (int sceneViewIndex, SLMouseButton button, int x, int y, SLKey modifier) |
void | touch2Down (int sceneViewIndex, int x1, int y1, int x2, int y2) |
void | touch2Move (int sceneViewIndex, int x1, int y1, int x2, int y2) |
void | touch2Up (int sceneViewIndex, int x1, int y1, int x2, int y2) |
void | mouseWheel (int sceneViewIndex, int pos, SLKey modifier) |
void | keyPress (int sceneViewIndex, SLKey key, SLKey modifier) |
void | keyRelease (int sceneViewIndex, SLKey key, SLKey modifier) |
void | charInput (int sceneViewIndex, unsigned int character) |
void | longTouch (int sceneViewIndex, int x, int y) |
void | scrCaptureRequest (int sceneViewIndex, std::string outputPath) |
Private Attributes | |
SLInputManager & | _inputManager |
Definition at line 19 of file SLInputEventInterface.h.
SLInputEventInterface::SLInputEventInterface | ( | SLInputManager & | inputManager | ) |
Definition at line 14 of file SLInputEventInterface.cpp.
void SLInputEventInterface::charInput | ( | int | sceneViewIndex, |
unsigned int | character | ||
) |
Global event handler for unicode character input.
Definition at line 191 of file SLInputEventInterface.cpp.
void SLInputEventInterface::doubleClick | ( | int | sceneViewIndex, |
SLMouseButton | button, | ||
int | xpos, | ||
int | ypos, | ||
SLKey | modifier | ||
) |
Global event handler for double click events.
Definition at line 80 of file SLInputEventInterface.cpp.
Global event handler for keyboard key press events.
Definition at line 164 of file SLInputEventInterface.cpp.
Global event handler for keyboard key release events.
Definition at line 177 of file SLInputEventInterface.cpp.
|
inline |
Definition at line 38 of file SLInputEventInterface.h.
void SLInputEventInterface::mouseDown | ( | int | sceneViewIndex, |
SLMouseButton | button, | ||
int | xpos, | ||
int | ypos, | ||
SLKey | modifier | ||
) |
Global event handler for mouse button down events.
Definition at line 33 of file SLInputEventInterface.cpp.
void SLInputEventInterface::mouseMove | ( | int | sceneViewIndex, |
int | x, | ||
int | y | ||
) |
Global event handler for mouse move events.
Definition at line 50 of file SLInputEventInterface.cpp.
void SLInputEventInterface::mouseUp | ( | int | sceneViewIndex, |
SLMouseButton | button, | ||
int | xpos, | ||
int | ypos, | ||
SLKey | modifier | ||
) |
Global event handler for mouse button up events.
Definition at line 63 of file SLInputEventInterface.cpp.
Global event handler for mouse wheel events.
Definition at line 151 of file SLInputEventInterface.cpp.
void SLInputEventInterface::resize | ( | int | sceneViewIndex, |
int | width, | ||
int | height | ||
) |
Global resize function that must be called whenever the OpenGL frame changes it's size.
Definition at line 22 of file SLInputEventInterface.cpp.
void SLInputEventInterface::scrCaptureRequest | ( | int | sceneViewIndex, |
std::string | outputPath | ||
) |
Global event handler to trigger a screenshot
Definition at line 202 of file SLInputEventInterface.cpp.
void SLInputEventInterface::touch2Down | ( | int | sceneViewIndex, |
int | xpos1, | ||
int | ypos1, | ||
int | xpos2, | ||
int | ypos2 | ||
) |
Global event handler for the two finger touch down events of touchscreen devices.
Definition at line 98 of file SLInputEventInterface.cpp.
void SLInputEventInterface::touch2Move | ( | int | sceneViewIndex, |
int | xpos1, | ||
int | ypos1, | ||
int | xpos2, | ||
int | ypos2 | ||
) |
Global event handler for the two finger move events of touchscreen devices.
Definition at line 116 of file SLInputEventInterface.cpp.
void SLInputEventInterface::touch2Up | ( | int | sceneViewIndex, |
int | xpos1, | ||
int | ypos1, | ||
int | xpos2, | ||
int | ypos2 | ||
) |
Global event handler for the two finger touch up events of touchscreen devices.
Definition at line 134 of file SLInputEventInterface.cpp.
void SLInputEventInterface::updateScr2fb | ( | int | sceneViewIndex | ) |
|
private |
Definition at line 42 of file SLInputEventInterface.h.