src/video/quartz/SDL_QuartzVideo.h
changeset 615 7ec821f3cbd0
parent 588 2c6510c0a304
child 656 864e2d2a9a55
equal deleted inserted replaced
614:0b4c3f5ff63d 615:7ec821f3cbd0
   136     Uint32             last_virtual_button;/* last virtual mouse button pressed */
   136     Uint32             last_virtual_button;/* last virtual mouse button pressed */
   137     io_connect_t       power_connection;   /* used with IOKit to detect wake from sleep */
   137     io_connect_t       power_connection;   /* used with IOKit to detect wake from sleep */
   138     Uint8              expect_mouse_up;    /* used to determine when to send mouse up events */
   138     Uint8              expect_mouse_up;    /* used to determine when to send mouse up events */
   139     Uint8              grab_state;         /* used to manage grab behavior */
   139     Uint8              grab_state;         /* used to manage grab behavior */
   140     NSPoint            cursor_loc;         /* saved cursor coords, for activate/deactivate when grabbed */
   140     NSPoint            cursor_loc;         /* saved cursor coords, for activate/deactivate when grabbed */
   141     BOOL          	   cursor_visible;     /* tells if cursor was hidden or not */
   141     BOOL          	   cursor_visible;     /* tells if cursor was instructed to be hidden or not (SDL_ShowCursor) */
       
   142     BOOL               cursor_hidden;      /* tells if cursor is *actually* hidden or not */
   142     Uint8*             sw_buffers[2];      /* pointers to the two software buffers for double-buffer emulation */
   143     Uint8*             sw_buffers[2];      /* pointers to the two software buffers for double-buffer emulation */
   143     SDL_Thread         *thread;            /* thread for async updates to the screen */
   144     SDL_Thread         *thread;            /* thread for async updates to the screen */
   144     SDL_sem            *sem1, *sem2;       /* synchronization for async screen updates */
   145     SDL_sem            *sem1, *sem2;       /* synchronization for async screen updates */
   145     Uint8              *current_buffer;    /* the buffer being copied to the screen */
   146     Uint8              *current_buffer;    /* the buffer being copied to the screen */
   146     BOOL               quit_thread;        /* used to quit the async blitting thread */
   147     BOOL               quit_thread;        /* used to quit the async blitting thread */
   181 #define power_connection (this->hidden->power_connection)
   182 #define power_connection (this->hidden->power_connection)
   182 #define expect_mouse_up (this->hidden->expect_mouse_up)
   183 #define expect_mouse_up (this->hidden->expect_mouse_up)
   183 #define grab_state (this->hidden->grab_state)
   184 #define grab_state (this->hidden->grab_state)
   184 #define cursor_loc (this->hidden->cursor_loc)
   185 #define cursor_loc (this->hidden->cursor_loc)
   185 #define cursor_visible (this->hidden->cursor_visible)
   186 #define cursor_visible (this->hidden->cursor_visible)
       
   187 #define cursor_hidden (this->hidden->cursor_hidden)
   186 #define sw_buffers (this->hidden->sw_buffers)
   188 #define sw_buffers (this->hidden->sw_buffers)
   187 #define thread (this->hidden->thread)
   189 #define thread (this->hidden->thread)
   188 #define sem1 (this->hidden->sem1)
   190 #define sem1 (this->hidden->sem1)
   189 #define sem2 (this->hidden->sem2)
   191 #define sem2 (this->hidden->sem2)
   190 #define current_buffer (this->hidden->current_buffer)
   192 #define current_buffer (this->hidden->current_buffer)