1998-12-07 10:36:13 +01:00
|
|
|
/*
|
|
|
|
* TTY driver
|
|
|
|
*
|
1999-02-04 14:14:42 +01:00
|
|
|
* Copyright 1998-1999 Patrik Stridvall
|
1998-12-07 10:36:13 +01:00
|
|
|
*/
|
|
|
|
|
1999-02-04 14:14:42 +01:00
|
|
|
#include "clipboard.h"
|
|
|
|
#include "desktop.h"
|
|
|
|
#include "keyboard.h"
|
|
|
|
#include "message.h"
|
|
|
|
#include "monitor.h"
|
1999-04-01 10:16:08 +02:00
|
|
|
#include "mouse.h"
|
|
|
|
#include "user.h"
|
|
|
|
#include "win.h"
|
1998-12-07 10:36:13 +01:00
|
|
|
#include "ttydrv.h"
|
|
|
|
|
1999-04-01 10:16:08 +02:00
|
|
|
USER_DRIVER TTYDRV_USER_Driver =
|
|
|
|
{
|
|
|
|
TTYDRV_USER_Initialize,
|
|
|
|
TTYDRV_USER_Finalize,
|
|
|
|
TTYDRV_USER_BeginDebugging,
|
|
|
|
TTYDRV_USER_EndDebugging
|
|
|
|
};
|
|
|
|
|
1998-12-07 10:36:13 +01:00
|
|
|
CLIPBOARD_DRIVER TTYDRV_CLIPBOARD_Driver =
|
|
|
|
{
|
1999-04-01 14:03:52 +02:00
|
|
|
TTYDRV_CLIPBOARD_Empty,
|
|
|
|
TTYDRV_CLIPBOARD_SetData,
|
|
|
|
TTYDRV_CLIPBOARD_GetData,
|
1998-12-07 10:36:13 +01:00
|
|
|
TTYDRV_CLIPBOARD_ResetOwner
|
|
|
|
};
|
|
|
|
|
1999-02-04 14:14:42 +01:00
|
|
|
DESKTOP_DRIVER TTYDRV_DESKTOP_Driver =
|
1998-12-07 10:36:13 +01:00
|
|
|
{
|
1999-02-04 14:14:42 +01:00
|
|
|
TTYDRV_DESKTOP_Initialize,
|
|
|
|
TTYDRV_DESKTOP_Finalize
|
1998-12-07 10:36:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
EVENT_DRIVER TTYDRV_EVENT_Driver =
|
|
|
|
{
|
|
|
|
TTYDRV_EVENT_Init,
|
|
|
|
TTYDRV_EVENT_AddIO,
|
|
|
|
TTYDRV_EVENT_DeleteIO,
|
|
|
|
TTYDRV_EVENT_WaitNetEvent,
|
|
|
|
TTYDRV_EVENT_Synchronize,
|
|
|
|
TTYDRV_EVENT_CheckFocus,
|
|
|
|
TTYDRV_EVENT_QueryPointer,
|
|
|
|
TTYDRV_EVENT_DummyMotionNotify,
|
|
|
|
TTYDRV_EVENT_Pending,
|
1999-02-21 19:15:26 +01:00
|
|
|
TTYDRV_EVENT_IsUserIdle,
|
|
|
|
TTYDRV_EVENT_WakeUp
|
1998-12-07 10:36:13 +01:00
|
|
|
};
|
|
|
|
|
1999-02-04 14:14:42 +01:00
|
|
|
KEYBOARD_DRIVER TTYDRV_KEYBOARD_Driver =
|
|
|
|
{
|
|
|
|
TTYDRV_KEYBOARD_Init,
|
|
|
|
TTYDRV_KEYBOARD_VkKeyScan,
|
|
|
|
TTYDRV_KEYBOARD_MapVirtualKey,
|
|
|
|
TTYDRV_KEYBOARD_GetKeyNameText,
|
1999-04-01 10:16:08 +02:00
|
|
|
TTYDRV_KEYBOARD_ToAscii,
|
|
|
|
TTYDRV_KEYBOARD_GetBeepActive,
|
|
|
|
TTYDRV_KEYBOARD_SetBeepActive,
|
|
|
|
TTYDRV_KEYBOARD_Beep
|
1999-02-04 14:14:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
MONITOR_DRIVER TTYDRV_MONITOR_Driver =
|
|
|
|
{
|
|
|
|
TTYDRV_MONITOR_Initialize,
|
|
|
|
TTYDRV_MONITOR_Finalize,
|
1999-04-01 10:16:08 +02:00
|
|
|
TTYDRV_MONITOR_IsSingleWindow,
|
1999-02-04 14:14:42 +01:00
|
|
|
TTYDRV_MONITOR_GetWidth,
|
|
|
|
TTYDRV_MONITOR_GetHeight,
|
1999-04-01 10:16:08 +02:00
|
|
|
TTYDRV_MONITOR_GetDepth,
|
|
|
|
TTYDRV_MONITOR_GetScreenSaveActive,
|
|
|
|
TTYDRV_MONITOR_SetScreenSaveActive,
|
|
|
|
TTYDRV_MONITOR_GetScreenSaveTimeout,
|
|
|
|
TTYDRV_MONITOR_SetScreenSaveTimeout
|
1999-02-04 14:14:42 +01:00
|
|
|
};
|
|
|
|
|
1998-12-07 10:36:13 +01:00
|
|
|
MOUSE_DRIVER TTYDRV_MOUSE_Driver =
|
|
|
|
{
|
1999-02-04 14:14:42 +01:00
|
|
|
TTYDRV_MOUSE_SetCursor,
|
1999-04-01 10:16:08 +02:00
|
|
|
TTYDRV_MOUSE_MoveCursor,
|
|
|
|
TTYDRV_MOUSE_EnableWarpPointer
|
1998-12-07 10:36:13 +01:00
|
|
|
};
|
1999-02-04 14:14:42 +01:00
|
|
|
|
|
|
|
WND_DRIVER TTYDRV_WND_Driver =
|
|
|
|
{
|
|
|
|
TTYDRV_WND_Initialize,
|
|
|
|
TTYDRV_WND_Finalize,
|
|
|
|
TTYDRV_WND_CreateDesktopWindow,
|
|
|
|
TTYDRV_WND_CreateWindow,
|
|
|
|
TTYDRV_WND_DestroyWindow,
|
|
|
|
TTYDRV_WND_SetParent,
|
|
|
|
TTYDRV_WND_ForceWindowRaise,
|
|
|
|
TTYDRV_WND_SetWindowPos,
|
|
|
|
TTYDRV_WND_SetText,
|
|
|
|
TTYDRV_WND_SetFocus,
|
|
|
|
TTYDRV_WND_PreSizeMove,
|
|
|
|
TTYDRV_WND_PostSizeMove,
|
|
|
|
TTYDRV_WND_ScrollWindow,
|
|
|
|
TTYDRV_WND_SetDrawable,
|
1999-03-28 11:37:57 +02:00
|
|
|
TTYDRV_WND_SetHostAttr,
|
1999-02-04 14:14:42 +01:00
|
|
|
TTYDRV_WND_IsSelfClipping
|
|
|
|
};
|
|
|
|
|
|
|
|
|