Пример #1
0
void LCUI_InitWinMouse(void)
{
	LCUI_BindSysEvent(WM_MOUSEMOVE, OnMouseMessage, NULL, NULL);
	LCUI_BindSysEvent(WM_LBUTTONDOWN, OnMouseMessage, NULL, NULL);
	LCUI_BindSysEvent(WM_LBUTTONUP, OnMouseMessage, NULL, NULL);
	LCUI_BindSysEvent(WM_RBUTTONDOWN, OnMouseMessage, NULL, NULL);
	LCUI_BindSysEvent(WM_RBUTTONUP, OnMouseMessage, NULL, NULL);
	LCUI_BindSysEvent(WM_MOUSEWHEEL, OnMouseMessage, NULL, NULL);
	LCUI_BindSysEvent(WM_TOUCH, OnMouseMessage, NULL, NULL);
}
Пример #2
0
void LCUI_InitLinuxX11Mouse( void )
{
	LCUI_BindSysEvent( MotionNotify, OnMotionNotify, NULL, NULL );
	LCUI_BindSysEvent( ButtonPress, OnButtonPress, NULL, NULL );
	LCUI_BindSysEvent( ButtonRelease, OnButtonRelease, NULL, NULL );
}