Keymap editor now understands NDOF (button) events too.
authorNathan Letwory <nathan@letworyinteractive.com>
Thu, 21 Jul 2011 21:43:42 +0000 (21:43 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Thu, 21 Jul 2011 21:43:42 +0000 (21:43 +0000)
release/scripts/startup/bl_ui/space_userpref_keymap.py

index 85764c5530481807d0b46e6bd60ca900487df530..8faf1afab6313098edaa54d9ba4bc965870a1da8 100644 (file)
@@ -271,6 +271,8 @@ class InputKeyMapPanel:
             row.prop(kmi, "type", text="", full_event=True)
         elif map_type == 'MOUSE':
             row.prop(kmi, "type", text="", full_event=True)
+        if map_type == 'NDOF':
+            row.prop(kmi, "type", text="", full_event=True)
         elif map_type == 'TWEAK':
             subrow = row.row()
             subrow.prop(kmi, "type", text="")
@@ -306,7 +308,7 @@ class InputKeyMapPanel:
                 sub = split.column()
                 subrow = sub.row(align=True)
 
-                if map_type == 'KEYBOARD':
+                if map_type in ('KEYBOARD', 'NDOF'):
                     subrow.prop(kmi, "type", text="", event=True)
                     subrow.prop(kmi, "value", text="")
                 elif map_type == 'MOUSE':