Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_event_query.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| if (!event->is_direction_inverted) { | if (!event->is_direction_inverted) { | ||||
| dy = -dy; | dy = -dy; | ||||
| } | } | ||||
| return dy; | return dy; | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | |||||
| /** \name Event IME Input Access | |||||
| * \{ */ | |||||
| #ifdef WITH_INPUT_IME | |||||
| /* most os using ctrl/oskey + space to switch ime, avoid added space */ | |||||
| bool WM_event_is_ime_switch(const struct wmEvent *event) | |||||
| { | |||||
| return event->val == KM_PRESS && event->type == EVT_SPACEKEY && | |||||
| (event->ctrl || event->oskey || event->shift || event->alt); | |||||
| } | |||||
| #endif | |||||
| /** \} */ | |||||
| Context not available. | |||||