SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SLInputEvent Class Reference

Baseclass for all system input events. More...

#include <SLInputEvent.h>

Inheritance diagram for SLInputEvent:
[legend]

Public Types

enum  Type {
  MouseMove , MouseDown , MouseUp , MouseDoubleClick , MouseWheel , Touch2Move ,
  Touch2Down , Touch2Up , KeyDown , KeyUp , Resize , DeviceRotationPYR ,
  DeviceRotationQUAT , CharInput , ScrCapture , NumEvents
}
 

Public Member Functions

 SLInputEvent (Type t)
 

Public Attributes

enum SLInputEvent::Type type
 concrete type of the event More...
 
SLint svIndex
 index of the receiving scene view for this event More...
 

Detailed Description

Baseclass for all system input events.

SLProject has it's own internal event queue to guarantee the same input handling accross multiple platforms. Some system's might send system events asynchronously. This is why we provide the SLInputEvent class for all system relevant input events.

Definition at line 24 of file SLInputEvent.h.

Member Enumeration Documentation

◆ Type

Enumerator
MouseMove 
MouseDown 
MouseUp 
MouseDoubleClick 
MouseWheel 
Touch2Move 
Touch2Down 
Touch2Up 
KeyDown 
KeyUp 
Resize 
DeviceRotationPYR 
DeviceRotationQUAT 
CharInput 
ScrCapture 
NumEvents 

Definition at line 27 of file SLInputEvent.h.

28  {
29  MouseMove,
30  MouseDown,
31  MouseUp,
33  MouseWheel,
34  Touch2Move,
35  Touch2Down,
36  Touch2Up,
37  KeyDown,
38  KeyUp,
39  Resize,
42  CharInput,
43  ScrCapture,
44  NumEvents
45  } type; //!< concrete type of the event
enum SLInputEvent::Type type
concrete type of the event

Constructor & Destructor Documentation

◆ SLInputEvent()

SLInputEvent::SLInputEvent ( Type  t)
inline

Definition at line 48 of file SLInputEvent.h.

48 : type(t) {}

Member Data Documentation

◆ svIndex

SLint SLInputEvent::svIndex

index of the receiving scene view for this event

Definition at line 46 of file SLInputEvent.h.

◆ type

enum SLInputEvent::Type SLInputEvent::type

concrete type of the event


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