Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemX11.cpp
| Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
| /* see [#34039] Fix Alt key glitch on Unity desktop */ | /* see [#34039] Fix Alt key glitch on Unity desktop */ | ||||
| #define USE_UNITY_WORKAROUND | #define USE_UNITY_WORKAROUND | ||||
| /* Fix 'shortcut' part of keyboard reading code only ever using first defined keymap | /* Fix 'shortcut' part of keyboard reading code only ever using first defined keymap | ||||
| * instead of active one. See T47228 and D1746 */ | * instead of active one. See T47228 and D1746 */ | ||||
| #define USE_NON_LATIN_KB_WORKAROUND | #define USE_NON_LATIN_KB_WORKAROUND | ||||
| static uchar bit_is_on(const uchar *ptr, int bit) | static unsigned char bit_is_on(const unsigned char *ptr, int bit) | ||||
| { | { | ||||
| return ptr[bit >> 3] & (1 << (bit & 7)); | return ptr[bit >> 3] & (1 << (bit & 7)); | ||||
| } | } | ||||
| static GHOST_TKey ghost_key_from_keysym(const KeySym key); | static GHOST_TKey ghost_key_from_keysym(const KeySym key); | ||||
| static GHOST_TKey ghost_key_from_keycode(const XkbDescPtr xkb_descr, const KeyCode keycode); | static GHOST_TKey ghost_key_from_keycode(const XkbDescPtr xkb_descr, const KeyCode keycode); | ||||
| static GHOST_TKey ghost_key_from_keysym_or_keycode(const KeySym key, | static GHOST_TKey ghost_key_from_keysym_or_keycode(const KeySym key, | ||||
| const XkbDescPtr xkb_descr, | const XkbDescPtr xkb_descr, | ||||
| ▲ Show 20 Lines • Show All 2,586 Lines • Show Last 20 Lines | |||||