summaryrefslogtreecommitdiff
path: root/hw/xwin/InitInput.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xwin/InitInput.c')
-rw-r--r--hw/xwin/InitInput.c31
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