Cleanup: rename direction enum as it's part of the key-map item

Also improve doc-strings for key-map item constants.
This commit is contained in:
2022-03-02 17:54:06 +11:00
parent 7e4c031328
commit 46a5a15d30
5 changed files with 73 additions and 52 deletions

View File

@@ -411,7 +411,7 @@ static bool keymap_item_update_tweak_event(wmKeyMapItem *kmi, void *UNUSED(user_
return false;
}
if (kmi->val >= EVT_GESTURE_N && kmi->val <= EVT_GESTURE_NW) {
if (kmi->val >= KM_DIRECTION_N && kmi->val <= KM_DIRECTION_NW) {
kmi->direction = kmi->val;
}
else {