VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/xf86OSKbd.h@ 97956

最後變更 在這個檔案從97956是 69098,由 vboxsync 提交於 7 年 前

Clean up XFree86 driver header files.
bugref:3810: X11 Guest Additions maintenance
Over the years we have cleaned up the layout in the tree of the X.Org
header files we use to build drivers. The XFree86 ones were still in their
original, rather sub-optimal layout. This change fixes that.

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.6 KB
 
1/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/xf86OSKbd.h,v 1.3 2003/02/17 15:11:55 dawes Exp $ */
2
3/*
4 * Copyright (c) 2002 by The XFree86 Project, Inc.
5 * Author: Ivan Pascal.
6 */
7
8#include "xf86Xinput.h"
9
10Bool ATScancode(InputInfoPtr pInfo, int *scanCode);
11
12/* Public interface to OS-specific keyboard support. */
13
14typedef int (*KbdInitProc)(InputInfoPtr pInfo, int what);
15typedef int (*KbdOnProc)(InputInfoPtr pInfo, int what);
16typedef int (*KbdOffProc)(InputInfoPtr pInfo, int what);
17typedef void (*BellProc)(InputInfoPtr pInfo,
18 int loudness, int pitch, int duration);
19typedef void (*SetLedsProc)(InputInfoPtr pInfo, int leds);
20typedef int (*GetLedsProc)(InputInfoPtr pInfo);
21typedef void (*SetKbdRepeatProc)(InputInfoPtr pInfo, char rad);
22typedef void (*KbdGetMappingProc)(InputInfoPtr pInfo,
23 KeySymsPtr pKeySyms, CARD8* pModMap);
24typedef int (*GetSpecialKeyProc)(InputInfoPtr pInfo, int scanCode);
25typedef Bool (*SpecialKeyProc)(InputInfoPtr pInfo,
26 int key, Bool down, int modifiers);
27typedef int (*RemapScanCodeProc)(InputInfoPtr pInfo, int *scanCode);
28typedef Bool (*OpenKeyboardProc)(InputInfoPtr pInfo);
29typedef void (*PostEventProc)(InputInfoPtr pInfo,
30 unsigned int key, Bool down);
31typedef struct {
32 int begin;
33 int end;
34 unsigned char *map;
35} TransMapRec, *TransMapPtr;
36
37typedef struct {
38 KbdInitProc KbdInit;
39 KbdOnProc KbdOn;
40 KbdOffProc KbdOff;
41 BellProc Bell;
42 SetLedsProc SetLeds;
43 GetLedsProc GetLeds;
44 SetKbdRepeatProc SetKbdRepeat;
45 KbdGetMappingProc KbdGetMapping;
46 RemapScanCodeProc RemapScanCode;
47 GetSpecialKeyProc GetSpecialKey;
48 SpecialKeyProc SpecialKey;
49
50 OpenKeyboardProc OpenKeyboard;
51 PostEventProc PostEvent;
52
53 int rate;
54 int delay;
55 int bell_pitch;
56 int bell_duration;
57 Bool autoRepeat;
58 unsigned long leds;
59 unsigned long xledsMask;
60 unsigned long keyLeds;
61 int scanPrefix;
62 Bool vtSwitchSupported;
63 Bool CustomKeycodes;
64 Bool noXkb;
65 Bool isConsole;
66 TransMapPtr scancodeMap;
67 TransMapPtr specialMap;
68
69 /* os specific */
70 pointer private;
71 int kbdType;
72 int consType;
73 int wsKbdType;
74 Bool sunKbd;
75 Bool Panix106;
76
77} KbdDevRec, *KbdDevPtr;
78
79typedef enum {
80 PROT_STD,
81 PROT_XQUEUE,
82 PROT_WSCONS,
83 PROT_USB,
84 PROT_UNKNOWN
85} KbdProtocolId;
86
87typedef struct {
88 const char *name;
89 KbdProtocolId id;
90} KbdProtocolRec;
91
92Bool xf86OSKbdPreInit(InputInfoPtr pInfo);
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette