SLProject 4.0.000
SLInputEventInterface Class Reference

#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
 

Constructor & Destructor Documentation

◆ SLInputEventInterface()

SLInputEventInterface::SLInputEventInterface ( SLInputManager inputManager)

Member Function Documentation

◆ charInput()

void SLInputEventInterface::charInput ( int  sceneViewIndex,
unsigned int  character 
)

Global event handler for unicode character input.

◆ doubleClick()

void SLInputEventInterface::doubleClick ( int  sceneViewIndex,
SLMouseButton  button,
int  xpos,
int  ypos,
SLKey  modifier 
)

Global event handler for double click events.

◆ keyPress()

void SLInputEventInterface::keyPress ( int  sceneViewIndex,
SLKey  key,
SLKey  modifier 
)

Global event handler for keyboard key press events.

◆ keyRelease()

void SLInputEventInterface::keyRelease ( int  sceneViewIndex,
SLKey  key,
SLKey  modifier 
)

Global event handler for keyboard key release events.

◆ longTouch()

void SLInputEventInterface::longTouch ( int  sceneViewIndex,
int  x,
int  y 
)
inline

◆ mouseDown()

void SLInputEventInterface::mouseDown ( int  sceneViewIndex,
SLMouseButton  button,
int  xpos,
int  ypos,
SLKey  modifier 
)

Global event handler for mouse button down events.

◆ mouseMove()

void SLInputEventInterface::mouseMove ( int  sceneViewIndex,
int  x,
int  y 
)

Global event handler for mouse move events.

◆ mouseUp()

void SLInputEventInterface::mouseUp ( int  sceneViewIndex,
SLMouseButton  button,
int  xpos,
int  ypos,
SLKey  modifier 
)

Global event handler for mouse button up events.

◆ mouseWheel()

void SLInputEventInterface::mouseWheel ( int  sceneViewIndex,
int  pos,
SLKey  modifier 
)

Global event handler for mouse wheel events.

◆ resize()

void SLInputEventInterface::resize ( int  sceneViewIndex,
int  width,
int  height 
)

Global resize function that must be called whenever the OpenGL frame changes it's size.

◆ scrCaptureRequest()

void SLInputEventInterface::scrCaptureRequest ( int  sceneViewIndex,
std::string  outputPath 
)

Global event handler to trigger a screenshot

◆ touch2Down()

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.

◆ touch2Move()

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.

◆ touch2Up()

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.

◆ updateScr2fb()

void SLInputEventInterface::updateScr2fb ( int  sceneViewIndex)

Member Data Documentation

◆ _inputManager

SLInputManager& SLInputEventInterface::_inputManager
private

The documentation for this class was generated from the following files: