mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
53 lines
1.1 KiB
C
53 lines
1.1 KiB
C
/*
|
|
* X events handling functions
|
|
*
|
|
* Copyright 1993 Alexandre Julliard
|
|
*
|
|
*/
|
|
|
|
#include "message.h"
|
|
#include "debugtools.h"
|
|
|
|
DECLARE_DEBUG_CHANNEL(event)
|
|
|
|
/**********************************************************************/
|
|
|
|
EVENT_DRIVER *EVENT_Driver = NULL;
|
|
|
|
/***********************************************************************
|
|
* EVENT_Init
|
|
*
|
|
* Initialize input event handling
|
|
*/
|
|
BOOL EVENT_Init(void)
|
|
{
|
|
return EVENT_Driver->pInit();
|
|
}
|
|
|
|
/***********************************************************************
|
|
* EVENT_Synchronize
|
|
*
|
|
* Synchronize with the X server. Should not be used too often.
|
|
*/
|
|
void EVENT_Synchronize( BOOL bProcessEvents )
|
|
{
|
|
EVENT_Driver->pSynchronize( bProcessEvents );
|
|
}
|
|
|
|
/**********************************************************************
|
|
* EVENT_CheckFocus
|
|
*/
|
|
BOOL EVENT_CheckFocus(void)
|
|
{
|
|
return EVENT_Driver->pCheckFocus();
|
|
}
|
|
|
|
/***********************************************************************
|
|
* EVENT_QueryPointer
|
|
*/
|
|
BOOL EVENT_QueryPointer(DWORD *posX, DWORD *posY, DWORD *state)
|
|
{
|
|
return EVENT_Driver->pQueryPointer(posX, posY, state);
|
|
}
|
|
|
|
|