From: <edh...@us...> - 2004-02-29 22:01:09
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv842/plugins/Core Modified Files: Video.h GameControl.cpp Log Message: Added keys ^F to toggle fullscreen mode and ^G to toggle mouse grab. Be careful, it's a nice way to hose your desktop Also you have to click GameControl first to make it work, sigh Index: Video.h =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/Core/Video.h,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** Video.h 24 Feb 2004 22:20:36 -0000 1.24 --- Video.h 29 Feb 2004 21:50:35 -0000 1.25 *************** *** 50,54 **** --- 50,56 ---- virtual VideoModes GetVideoModes(bool fullscreen = false) = 0; virtual bool TestVideoMode(VideoMode& vm) = 0; + virtual bool ToggleFullscreenMode() = 0; virtual int SwapBuffers(void) = 0; + virtual bool ToggleGrabInput() = 0; virtual Sprite2D* CreateSprite(int w, int h, int bpp, DWORD rMask, DWORD gMask, DWORD bMask, DWORD aMask, void* pixels, bool cK = false, Index: GameControl.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/Core/GameControl.cpp,v retrieving revision 1.94 retrieving revision 1.95 diff -C2 -d -r1.94 -r1.95 *** GameControl.cpp 28 Feb 2004 15:24:13 -0000 1.94 --- GameControl.cpp 29 Feb 2004 21:50:35 -0000 1.95 *************** *** 285,288 **** --- 285,296 ---- printf( "TAB released\n" ); return; + case 'f': + if (Mod & 64) + core->GetVideoDriver()->ToggleFullscreenMode(); + break; + case 'g': + if (Mod & 64) + core->GetVideoDriver()->ToggleGrabInput(); + break; default: break; |