20 #ifndef EQFABRIC_EVENT_H
21 #define EQFABRIC_EVENT_H
23 #include <eq/fabric/api.h>
24 #include <eq/fabric/types.h>
25 #include <eq/fabric/renderContext.h>
26 #include <eq/fabric/statistic.h>
84 # define EQ_USER_EVENT_SIZE 128
93 char data[ EQ_USER_EVENT_SIZE ];
108 EQFABRIC_API
Event();
119 #ifdef EQ_USE_DEPRECATED
122 POINTER_BUTTON_PRESS,
124 POINTER_BUTTON_RELEASE,
126 CHANNEL_POINTER_MOTION = POINTER_MOTION,
135 CHANNEL_POINTER_MOTION,
146 WINDOW_POINTER_MOTION,
230 EQFABRIC_API std::ostream& operator << ( std::ostream&,
const Event& );
232 EQFABRIC_API std::ostream& operator << ( std::ostream&,
const Event::Type& );
234 EQFABRIC_API std::ostream& operator << ( std::ostream&,
const ResizeEvent& );
236 EQFABRIC_API std::ostream& operator << ( std::ostream&,
const PointerEvent& );
238 EQFABRIC_API std::ostream& operator << ( std::ostream&,
const KeyEvent& );
240 EQFABRIC_API std::ostream& operator << ( std::ostream&,
const MagellanEvent& );
248 byteswap( value.
type );
250 byteswap( value.
time );
258 #endif // EQFABRIC_EVENT_H
Channel pointer button release data in pointerButtonRelease.
uint32_t buttons
current state of all buttons
Type
The type of the event.
int16_t yAxis
Y translation.
int32_t yAxis
y wheel rotation
int32_t y
Y position relative to entity (0 is on top)
UserEvent user
User-defined event data.
int32_t y
new Y position, relative to parent
Event structure to report window system and other events.
uint32_t button
fired button
PointerEvent pointerWheel
Mouse wheel motion data.
uint32_t key
KeyCode for special keys, ascii code otherwise.
PointerEvent pointerMotion
Pointer motion data.
Event type not known by the event handler.
uint32_t buttons
current state of all buttons
int16_t xAxis
X translation.
MagellanEvent magellan
SpaceMouse data.
ResizeEvent resize
Resize event data.
Channel resize data in resize.
ResizeEvent hide
Window hide event data.
Event for a pointer (mouse) motion or click.
SpaceMouse movement data in magellan.
Window pointer button press data in pointerButtonPress.
ResizeEvent show
Window show event data.
int16_t xRotation
X rotation.
uint32_t serial
server-unique originator serial number
Window pointer grabbed by system window.
KeyEvent keyRelease
Key release event data.
Window pointer movement data in pointerMotion.
uint32_t type
The event type.
Exit request due to runtime error.
Key release data in keyRelease.
Window resize data in resize.
PointerEvent pointer
Pointer event data.
int16_t yRotation
Y rotation.
int16_t zAxis
Z translation.
int16_t zRotation
Z rotation.
KeyEvent key
Key event data.
Event for a key press or release.
int32_t dy
Y position change since last event.
PointerEvent pointerButtonPress
Mouse button press data.
Statistic event in statistic.
int32_t xAxis
x wheel rotation
Channel pointer button press data in pointerButtonPress.
Window pointer Mouse wheel data in wheel.
SpaceMouse button data in magellan.
Statistic statistic
Statistic event.
float dw
view only: new width relative to initial width
Observer moved (head tracking update).
Window pointer to be released by system window.
RenderContext context
The last rendering context for the pointer position.
int64_t time
The config time when the event was created.
Window pointer button release data in pointerButtonRelease.
EQFABRIC_API Event()
Construct a new event.
Event for a size or position change on a Window, Channel or View.
User-defined events have to be of this type or higher.
Event for a SpaceMouse movement or click.
int32_t x
X position relative to entity.
uint128_t originator
The identifier of the entity emitting the event.
char data[EQ_USER_EVENT_SIZE]
Application-specific data.
int32_t dx
X position change since last event.
int32_t x
new X position, relative to parent
uint32_t button
fired button
View resize data in resize.
KeyEvent keyPress
Key press event data.
PointerEvent pointerButtonRelease
Mouse button release data.
Key press data in keyPress.
The context applied to a channel during rendering operations.
float dh
view only: new height relative to initial height
A window screensaver request (Win32 only)
A window has been closed.