예제 #1
0
/* Reads an event from the mouse buffer.
   Warning: For now, we assume there's no console switching. */
static int mouse_update (void)
{
	int result;

	result = get_ms_event(0);

	return result;
}
예제 #2
0
void update_mysky(void)
  {
  MS_EVENT x;

  get_ms_event(&x);
  if (x.event)
     {
     ms_last_event=x;
     }
  if(!visible) move_ms_cursor(x.x-h_x,x.y-h_y,0);
  }
예제 #3
0
파일: mouse.c 프로젝트: carlosphp/svgalib-1
void mouse_waitforupdate()
{
#if 0
    fd_set *readfds, writefds, exceptfds;
    struct timeval timeout;
    FD_ZERO(readfds);
    FD_ZERO(writefds);
    FD_ZERO(exceptfds);
    FD_SET(__svgalib_mouse_fd, readfds);
    /* need to setup timeout. */
    select(readfds, writefds, exceptfds, &timeout);
#else
    get_ms_event(1);
#endif
    return;
}
예제 #4
0
void ms_idle_event(EVENT_MSG *info,void *user_data)
  {
  void *i;MS_EVENT x;
  user_data;info;
  if (info->msg==E_WATCH)
     {
     *otevri_zavoru=1;
     get_ms_event(&x);
     if (x.event)
       {
       ms_last_event=x;
       i=&ms_last_event;
       *otevri_zavoru=1;
       send_message(E_MOUSE,i);
       }
     }
  }
예제 #5
0
파일: mouse.c 프로젝트: carlosphp/svgalib-1
int mouse_update()
{
    int result;
    result = get_ms_event(0);
    return result;
}