Misc small cleanups.
[wine] / windows / ttydrv / keyboard.c
1 /*
2  * TTY keyboard driver
3  *
4  * Copyright 1998 Patrik Stridvall
5  */
6
7 #include "dinput.h"
8 #include "keyboard.h"
9 #include "ttydrv.h"
10
11 /***********************************************************************
12  *              TTYDRV_KEYBOARD_Init
13  */
14 void TTYDRV_KEYBOARD_Init(void)
15 {
16 }
17
18 /***********************************************************************
19  *              TTYDRV_KEYBOARD_VkKeyScan
20  */
21 WORD TTYDRV_KEYBOARD_VkKeyScan(CHAR cChar)
22 {
23   return 0;
24 }
25
26 /***********************************************************************
27  *              TTYDRV_KEYBOARD_MapVirtualKey
28  */
29 UINT16 TTYDRV_KEYBOARD_MapVirtualKey(UINT16 wCode, UINT16 wMapType)
30 {
31   return 0;
32 }
33
34 /***********************************************************************
35  *              TTYDRV_KEYBOARD_GetKeyNameText
36  */
37 INT16 TTYDRV_KEYBOARD_GetKeyNameText(
38   LONG lParam, LPSTR lpBuffer, INT16 nSize)
39 {  
40   if(lpBuffer && nSize)
41     {
42       *lpBuffer = 0;
43     }
44   return 0;
45 }
46
47 /***********************************************************************
48  *              TTYDRV_KEYBOARD_ToAscii
49  */
50 INT16 TTYDRV_KEYBOARD_ToAscii(
51    UINT16 virtKey, UINT16 scanCode,
52    LPBYTE lpKeyState, LPVOID lpChar, UINT16 flags)
53 {
54   return 0;
55 }
56
57 /***********************************************************************
58  *              TTYDRV_KEYBOARD_GetBeepActive
59  */
60 BOOL TTYDRV_KEYBOARD_GetBeepActive()
61 {
62   return FALSE;
63 }
64
65 /***********************************************************************
66  *              TTYDRV_KEYBOARD_SetBeepActive
67  */
68 void TTYDRV_KEYBOARD_SetBeepActive(BOOL bActivate)
69 {
70 }
71
72 /***********************************************************************
73  *              TTYDRV_KEYBOARD_Beep
74  */
75 void TTYDRV_KEYBOARD_Beep()
76 {
77 }
78
79 /***********************************************************************
80  *              X11DRV_KEYBOARD_GetDIState
81  */
82 BOOL TTYDRV_KEYBOARD_GetDIState(DWORD len, LPVOID ptr)
83 {
84   return TRUE;
85 }
86
87 /***********************************************************************
88  *              TTYDRV_KEYBOARD_GetDIData
89  */
90 BOOL TTYDRV_KEYBOARD_GetDIData(
91   BYTE *keystate,
92   DWORD dodsize, LPDIDEVICEOBJECTDATA dod,
93   LPDWORD entries, DWORD flags)
94 {
95   return TRUE;
96 }
97
98 /***********************************************************************
99  *              TTYDRV_KEYBOARD_GetKeyboardConfig
100  */
101 void TTYDRV_KEYBOARD_GetKeyboardConfig(KEYBOARD_CONFIG *cfg) {
102
103 }
104
105 /***********************************************************************
106  *              TTYDRV_KEYBOARD_SetKeyboardConfig
107  */
108 extern void TTYDRV_KEYBOARD_SetKeyboardConfig(KEYBOARD_CONFIG *cfg, DWORD mask) {
109
110 }
111