diff src/video/quartz/SDL_QuartzVideo.h @ 555:2536446a92de

From: Darrell Walisser Subject: Re: [SDL] OS X and power save Here ya go. This works just fine. One might complain that it doesn't generate the event until after wake as completed (there is about 5 seconds between the screen coming up and the expose event), but I think that's OK.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 07 Dec 2002 06:48:49 +0000
parents 74262d2647ca
children 4bcf7dd06c47
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzVideo.h	Mon Dec 02 03:11:36 2002 +0000
+++ b/src/video/quartz/SDL_QuartzVideo.h	Sat Dec 07 06:48:49 2002 +0000
@@ -131,7 +131,8 @@
     SDLKey             keymap[256];        /* Mac OS X to SDL key mapping */
     Uint32             current_mods;       /* current keyboard modifiers, to track modifier state */
     Uint32             last_virtual_button;/* last virtual mouse button pressed */
-    
+    io_connect_t       powerConnection;    /* used with IOKit to detect wake from sleep */
+
     ImageDescriptionHandle yuv_idh;
     MatrixRecordPtr        yuv_matrix;
     DecompressorComponent  yuv_codec;
@@ -165,6 +166,7 @@
 #define keymap (this->hidden->keymap)
 #define current_mods (this->hidden->current_mods)
 #define last_virtual_button (this->hidden->last_virtual_button)
+#define powerConnection (this->hidden->powerConnection)
 
 #define yuv_idh (this->hidden->yuv_idh)
 #define yuv_matrix (this->hidden->yuv_matrix)