Commit: a634bcbdb4bf9116c3ab7a3d73a24a701f2dfdac
Author: Antony Riakiotakis
Date:   Thu Oct 30 16:16:29 2014 +0100
Branches: master
https://developer.blender.org/rBa634bcbdb4bf9116c3ab7a3d73a24a701f2dfdac

Add a few more warnings so coders hopefully will take note that event
codes get stored in keymaps and should not be changed

===================================================================

M       source/blender/windowmanager/wm_event_types.h

===================================================================

diff --git a/source/blender/windowmanager/wm_event_types.h 
b/source/blender/windowmanager/wm_event_types.h
index b7e9d63..fe6d343 100644
--- a/source/blender/windowmanager/wm_event_types.h
+++ b/source/blender/windowmanager/wm_event_types.h
@@ -90,6 +90,8 @@ enum {
 
        /* standard keyboard.
         * XXX from 0x0020 to 0x00ff, and 0x012c to 0x013f for function keys! */
+
+       /* NOTE: these values are saved in keymap files, do not change them but 
just add new ones */
        AKEY            = 0x0061,  /* 'a' */
        BKEY            = 0x0062,  /* 'b' */
        CKEY            = 0x0063,  /* 'c' */
@@ -301,6 +303,8 @@ enum {
        EVT_ACTIONZONE_REGION = 0x5001,
        EVT_ACTIONZONE_FULLSCREEN = 0x5011,
 
+       /* NOTE: these values are saved in keymap files, do not change them but 
just add new ones */
+
        /* tweak events, for L M R mousebuttons */
        EVT_TWEAK_L           = 0x5002,
        EVT_TWEAK_M           = 0x5003,
@@ -362,6 +366,7 @@ enum {
 /* ********** wmEvent.val ********** */
 
 /* Gestures */
+/* NOTE: these values are saved in keymap files, do not change them but just 
add new ones */
 enum {
        /* value of tweaks and line gestures, note, KM_ANY (-1) works for this 
case too */
        EVT_GESTURE_N   = 1,

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to