diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:29:01 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:29:01 +0000 |
commit | adc7f9a4ebdfe11d4cd6de9388b63dfe36450b39 (patch) | |
tree | 23eb7becc5360b2cbe16aa8d45529880067f3989 /hw/xwin/InitInput.c | |
parent | 90f1536dd315cd265bfc7ef35058761a65a01734 (diff) |
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_16
Diffstat (limited to 'hw/xwin/InitInput.c')
-rw-r--r-- | hw/xwin/InitInput.c | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/hw/xwin/InitInput.c b/hw/xwin/InitInput.c index a9f69aad5..de84a7aee 100644 --- a/hw/xwin/InitInput.c +++ b/hw/xwin/InitInput.c @@ -26,9 +26,10 @@ from The Open Group. */ -/* $XFree86: xc/programs/Xserver/hw/xwin/InitInput.c,v 1.12 2003/02/12 15:01:38 alanh Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xwin/InitInput.c,v 1.13 2003/07/29 21:25:15 dawes Exp $ */ #include "win.h" +#include "../../Xext/xf86miscproc.h" CARD32 g_c32LastInputEventTime = 0; @@ -117,6 +118,34 @@ InitInput (int argc, char *argv[]) AddEnabledDevice (g_fdMessageQueue); } +#if 0 + { + MiscExtReturn ret; + pointer kbd; + +#if 0 + if ((kbd = MiscExtCreateStruct(MISC_KEYBOARD)) == (pointer) 0) + return BadAlloc; +#else + kbd = MiscExtCreateStruct (MISC_KEYBOARD); +#endif + + MiscExtSetKbdValue(kbd, MISC_KBD_TYPE, 0); + MiscExtSetKbdValue(kbd, MISC_KBD_RATE, 0); + MiscExtSetKbdValue(kbd, MISC_KBD_DELAY, 0); + MiscExtSetKbdValue(kbd, MISC_KBD_SERVNUMLOCK, 0); + + switch ((ret = MiscExtApply (kbd, MISC_KEYBOARD))) + { + case MISC_RET_SUCCESS: break; + case MISC_RET_BADVAL: + case MISC_RET_BADKBDTYPE: + default: + ErrorF ("Unexpected return from MiscExtApply(KEYBOARD) = %d\n", ret); + } + } +#endif + #if CYGDEBUG ErrorF ("InitInput - returning\n"); #endif |