1 | /* $Id: XKeyboard.h 71630 2018-04-03 16:37:08Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - Declarations of Linux-specific keyboard functions.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2018 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef ___XKeyboard_h___
|
---|
19 | #define ___XKeyboard_h___
|
---|
20 |
|
---|
21 | /* GUI includes: */
|
---|
22 | #include "UILibraryDefs.h"
|
---|
23 |
|
---|
24 | /* Forward declarations: */
|
---|
25 | class QString;
|
---|
26 | typedef struct _XDisplay Display;
|
---|
27 |
|
---|
28 | /** Initializes the X keyboard subsystem. */
|
---|
29 | SHARED_LIBRARY_STUFF void initMappedX11Keyboard(Display *pDisplay, const QString &remapScancodes);
|
---|
30 |
|
---|
31 | /** Handles native XKey events. */
|
---|
32 | SHARED_LIBRARY_STUFF unsigned handleXKeyEvent(Display *pDisplay, unsigned int iDetail);
|
---|
33 |
|
---|
34 | /** Handles log requests from initXKeyboard after release logging is started. */
|
---|
35 | SHARED_LIBRARY_STUFF void doXKeyboardLogging(Display *pDisplay);
|
---|
36 |
|
---|
37 | /** Wraps for the XkbKeycodeToKeysym(3) API which falls back to the deprecated XKeycodeToKeysym(3) if it is unavailable. */
|
---|
38 | SHARED_LIBRARY_STUFF unsigned long wrapXkbKeycodeToKeysym(Display *pDisplay, unsigned char cCode,
|
---|
39 | unsigned int cGroup, unsigned int cIndex);
|
---|
40 |
|
---|
41 | #endif /* !___XKeyboard_h___ */
|
---|
42 |
|
---|