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:
authorCampbell Barton <campbell@blender.org>2022-03-02 09:54:06 +0300
committerCampbell Barton <campbell@blender.org>2022-03-02 10:00:59 +0300
commit46a5a15d30f951b150b66856442566d5b657ab1e (patch)
treef55b4001595bed72bfa004d6727d762c12c01ac6 /source/blender/windowmanager/intern
parent7e4c0313283304bd8f020eaedb94b35e75b50068 (diff)
Cleanup: rename direction enum as it's part of the key-map item
Also improve doc-strings for key-map item constants.
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r--source/blender/windowmanager/intern/wm_event_query.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_query.c b/source/blender/windowmanager/intern/wm_event_query.c
index e56d3fb3886..ee13e1832ed 100644
--- a/source/blender/windowmanager/intern/wm_event_query.c
+++ b/source/blender/windowmanager/intern/wm_event_query.c
@@ -232,28 +232,28 @@ int WM_event_drag_direction(const wmEvent *event)
};
int theta = round_fl_to_int(4.0f * atan2f((float)delta[1], (float)delta[0]) / (float)M_PI);
- int val = EVT_GESTURE_W;
+ int val = KM_DIRECTION_W;
if (theta == 0) {
- val = EVT_GESTURE_E;
+ val = KM_DIRECTION_E;
}
else if (theta == 1) {
- val = EVT_GESTURE_NE;
+ val = KM_DIRECTION_NE;
}
else if (theta == 2) {
- val = EVT_GESTURE_N;
+ val = KM_DIRECTION_N;
}
else if (theta == 3) {
- val = EVT_GESTURE_NW;
+ val = KM_DIRECTION_NW;
}
else if (theta == -1) {
- val = EVT_GESTURE_SE;
+ val = KM_DIRECTION_SE;
}
else if (theta == -2) {
- val = EVT_GESTURE_S;
+ val = KM_DIRECTION_S;
}
else if (theta == -3) {
- val = EVT_GESTURE_SW;
+ val = KM_DIRECTION_SW;
}
#if 0