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:
authorMike Erwin <significant.bit@gmail.com>2012-02-29 06:44:08 +0400
committerMike Erwin <significant.bit@gmail.com>2012-02-29 06:44:08 +0400
commit8600c8df43dbc94b89f7d456b927a0fe2b9be723 (patch)
tree6c2a5081623a1ab1e3bb14a5ba2879a73d084c2b /source/blender/windowmanager
parenta71128828f4d492c7f573f08c9f1ae4ab2560d71 (diff)
ndof button handling improvements: Spaceball5000's A,B,C buttons can now be keymapped, ndof modifiers (shift,alt,etc.) are almost ready but still hardcoded to act like keyboard for now. added a check to prevent crash on Linux when device is plugged in after blender starts. also fixed a bug introduced by my last commit that affected the SpaceTraveler and serial devices.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/wm_event_types.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/windowmanager/wm_event_types.h b/source/blender/windowmanager/wm_event_types.h
index 170413c13b0..02434d85c51 100644
--- a/source/blender/windowmanager/wm_event_types.h
+++ b/source/blender/windowmanager/wm_event_types.h
@@ -112,6 +112,11 @@ enum {
NDOF_BUTTON_DOMINANT,
NDOF_BUTTON_PLUS,
NDOF_BUTTON_MINUS,
+ // keyboard emulation
+ NDOF_BUTTON_ESC,
+ NDOF_BUTTON_ALT,
+ NDOF_BUTTON_SHIFT,
+ NDOF_BUTTON_CTRL,
// general-purpose buttons
NDOF_BUTTON_1,
NDOF_BUTTON_2,
@@ -123,6 +128,11 @@ enum {
NDOF_BUTTON_8,
NDOF_BUTTON_9,
NDOF_BUTTON_10,
+ // more general-purpose buttons
+ NDOF_BUTTON_A,
+ NDOF_BUTTON_B,
+ NDOF_BUTTON_C,
+ // the end
NDOF_LAST
};