1998-12-07 10:36:13 +01:00
|
|
|
/*
|
|
|
|
* TTY keyboard driver
|
|
|
|
*
|
|
|
|
* Copyright 1998 Patrik Stridvall
|
|
|
|
*/
|
|
|
|
|
2000-03-18 23:25:41 +01:00
|
|
|
#include "dinput.h"
|
2000-03-20 19:21:19 +01:00
|
|
|
#include "user.h"
|
1998-12-07 10:36:13 +01:00
|
|
|
#include "keyboard.h"
|
|
|
|
#include "ttydrv.h"
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* TTYDRV_KEYBOARD_Init
|
|
|
|
*/
|
|
|
|
void TTYDRV_KEYBOARD_Init(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* TTYDRV_KEYBOARD_VkKeyScan
|
|
|
|
*/
|
|
|
|
WORD TTYDRV_KEYBOARD_VkKeyScan(CHAR cChar)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* TTYDRV_KEYBOARD_MapVirtualKey
|
|
|
|
*/
|
|
|
|
UINT16 TTYDRV_KEYBOARD_MapVirtualKey(UINT16 wCode, UINT16 wMapType)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* TTYDRV_KEYBOARD_GetKeyNameText
|
|
|
|
*/
|
|
|
|
INT16 TTYDRV_KEYBOARD_GetKeyNameText(
|
|
|
|
LONG lParam, LPSTR lpBuffer, INT16 nSize)
|
|
|
|
{
|
|
|
|
if(lpBuffer && nSize)
|
|
|
|
{
|
|
|
|
*lpBuffer = 0;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* TTYDRV_KEYBOARD_ToAscii
|
|
|
|
*/
|
|
|
|
INT16 TTYDRV_KEYBOARD_ToAscii(
|
|
|
|
UINT16 virtKey, UINT16 scanCode,
|
|
|
|
LPBYTE lpKeyState, LPVOID lpChar, UINT16 flags)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-04-01 10:16:08 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* TTYDRV_KEYBOARD_GetBeepActive
|
|
|
|
*/
|
|
|
|
BOOL TTYDRV_KEYBOARD_GetBeepActive()
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* TTYDRV_KEYBOARD_SetBeepActive
|
|
|
|
*/
|
|
|
|
void TTYDRV_KEYBOARD_SetBeepActive(BOOL bActivate)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* TTYDRV_KEYBOARD_Beep
|
|
|
|
*/
|
|
|
|
void TTYDRV_KEYBOARD_Beep()
|
|
|
|
{
|
|
|
|
}
|
1998-12-07 10:36:13 +01:00
|
|
|
|
1999-07-04 15:31:03 +02:00
|
|
|
/***********************************************************************
|
2000-03-19 15:29:50 +01:00
|
|
|
* TTYDRV_KEYBOARD_GetDIState
|
1999-07-04 15:31:03 +02:00
|
|
|
*/
|
|
|
|
BOOL TTYDRV_KEYBOARD_GetDIState(DWORD len, LPVOID ptr)
|
|
|
|
{
|
|
|
|
return TRUE;
|
|
|
|
}
|
1998-12-07 10:36:13 +01:00
|
|
|
|
1999-07-04 15:31:03 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* TTYDRV_KEYBOARD_GetDIData
|
|
|
|
*/
|
|
|
|
BOOL TTYDRV_KEYBOARD_GetDIData(
|
|
|
|
BYTE *keystate,
|
|
|
|
DWORD dodsize, LPDIDEVICEOBJECTDATA dod,
|
|
|
|
LPDWORD entries, DWORD flags)
|
|
|
|
{
|
|
|
|
return TRUE;
|
|
|
|
}
|
1999-12-05 03:20:46 +01:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* TTYDRV_KEYBOARD_GetKeyboardConfig
|
|
|
|
*/
|
|
|
|
void TTYDRV_KEYBOARD_GetKeyboardConfig(KEYBOARD_CONFIG *cfg) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* TTYDRV_KEYBOARD_SetKeyboardConfig
|
|
|
|
*/
|
|
|
|
extern void TTYDRV_KEYBOARD_SetKeyboardConfig(KEYBOARD_CONFIG *cfg, DWORD mask) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|