Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/ghost/GHOST_Types.h')
-rw-r--r--intern/ghost/GHOST_Types.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/intern/ghost/GHOST_Types.h b/intern/ghost/GHOST_Types.h
index cf148adea10..a7c89c7e0a6 100644
--- a/intern/ghost/GHOST_Types.h
+++ b/intern/ghost/GHOST_Types.h
@@ -110,9 +110,10 @@ typedef enum {
typedef enum {
GHOST_kEventUnknown = 0,
- GHOST_kEventCursorMove,
- GHOST_kEventButtonDown,
- GHOST_kEventButtonUp,
+ GHOST_kEventCursorMove, /// Mouse move event
+ GHOST_kEventButtonDown, /// Mouse button event
+ GHOST_kEventButtonUp, /// Mouse button event
+ GHOST_kEventWheel, /// Mouse wheel event
GHOST_kEventKeyDown,
GHOST_kEventKeyUp,
@@ -311,6 +312,11 @@ typedef struct {
} GHOST_TEventButtonData;
typedef struct {
+ /** Displacement of a mouse wheel. */
+ GHOST_TInt32 z;
+} GHOST_TEventWheelData;
+
+typedef struct {
/** The key code. */
GHOST_TKey key;
/** The ascii code for the key event ('\0' if none). */