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:
authorMaarten Gribnau <mail@maartengribnau.com>2003-01-24 00:39:29 +0300
committerMaarten Gribnau <mail@maartengribnau.com>2003-01-24 00:39:29 +0300
commit5b845badefe74553a5e919052b80961bd212b77e (patch)
tree3fe94017c264f78e26b703f85a6d9c8bf86d55d9 /intern/ghost/GHOST_Types.h
parentcb4f2e1a4eb22ef6c1732851a0341fd4015635fd (diff)
First light of mouse wheel support.
Only working (soso) on osx. Maarten
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). */