提交 5f63189b 编写于 作者: G Grissiom

bsp/simulator: enable mouse motion track in SDL

Tested OK in RTGUI repo.
上级 e4e938dc
...@@ -184,7 +184,6 @@ static void *sdl_loop(void *lpParam) ...@@ -184,7 +184,6 @@ static void *sdl_loop(void *lpParam)
switch (event.type) switch (event.type)
{ {
case SDL_MOUSEMOTION: case SDL_MOUSEMOTION:
#if 0
{ {
struct rtgui_event_mouse emouse; struct rtgui_event_mouse emouse;
emouse.parent.type = RTGUI_EVENT_MOUSE_MOTION; emouse.parent.type = RTGUI_EVENT_MOUSE_MOTION;
...@@ -200,7 +199,6 @@ static void *sdl_loop(void *lpParam) ...@@ -200,7 +199,6 @@ static void *sdl_loop(void *lpParam)
/* send event to server */ /* send event to server */
rtgui_server_post_event(&emouse.parent, sizeof(struct rtgui_event_mouse)); rtgui_server_post_event(&emouse.parent, sizeof(struct rtgui_event_mouse));
} }
#endif
break; break;
case SDL_MOUSEBUTTONDOWN: case SDL_MOUSEBUTTONDOWN:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册