コード例 #1
0
ファイル: windows_mouse.c プロジェクト: lc-soft/LCUI
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
ファイル: linux_x11mouse.c プロジェクト: spacefan/LCUI
void LCUI_InitLinuxX11Mouse( void )
{
	LCUI_BindSysEvent( MotionNotify, OnMotionNotify, NULL, NULL );
	LCUI_BindSysEvent( ButtonPress, OnButtonPress, NULL, NULL );
	LCUI_BindSysEvent( ButtonRelease, OnButtonRelease, NULL, NULL );
}