
Data Structures | |
| struct | key_handler_t |
Functions | |
| key_handler_t * | CreateKeyHandler (vlc_object_t *obj, xcb_connection_t *conn) |
| Create an X11 key event handler for a VLC window. | |
| void | DestroyKeyHandler (key_handler_t *ctx) |
| static int | keysymcmp (const void *pa, const void *pb) |
| static uint_fast32_t | ConvertKeySym (xcb_keysym_t sym) |
| int | ProcessKeyEvent (key_handler_t *ctx, xcb_generic_event_t *ev) |
| Process an X11 event, convert into VLC hotkey event if applicable. | |
| static uint_fast32_t ConvertKeySym | ( | xcb_keysym_t | sym | ) | [static] |
| key_handler_t* CreateKeyHandler | ( | vlc_object_t * | obj, | |
| xcb_connection_t * | conn | |||
| ) |
Create an X11 key event handler for a VLC window.
The caller shall arrange receiving applicable X11 events, and pass them to ProcessKeyEvent() later.
| obj | VLC object owning an X window | |
| conn | XCB connection to the X server (to fetch key mappings) |
References ctx, key_handler_t::obj, and key_handler_t::syms.
Referenced by EmOpen().
| void DestroyKeyHandler | ( | key_handler_t * | ctx | ) |
| static int keysymcmp | ( | const void * | pa, | |
| const void * | pb | |||
| ) | [static] |
| int ProcessKeyEvent | ( | key_handler_t * | ctx, | |
| xcb_generic_event_t * | ev | |||
| ) |
Process an X11 event, convert into VLC hotkey event if applicable.
| ctx | key handler created with CreateKeyHandler() | |
| ev | XCB event to process |
References ConvertKeySym(), KEY_MODIFIER_ALT, KEY_MODIFIER_CTRL, KEY_MODIFIER_META, KEY_MODIFIER_SHIFT, KEY_UNSET, msg_Dbg, key_handler_t::obj, vlc_object_t::p_libvlc, key_handler_t::syms, and var_SetInteger.
Referenced by Thread().
1.5.6