/* Copyright (C) 1996-1997 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef WINQUAKE_H #define WINQUAKE_H // winquake.h: Win32-specific Quake header file // FIXME - all this can be moved to win specific files for sound, vid, etc. #ifndef _WIN32 #error "You shouldn't be including this file for non-Win32 stuff!" #endif // FIXME - mousewheel redefined? What is this magic number? #include #ifndef WM_MOUSEWHEEL # define WM_MOUSEWHEEL 0x020A #endif #ifndef SERVERONLY # include # include # include #endif #include "qtypes.h" extern HINSTANCE global_hInstance; extern int global_nCmdShow; #ifndef SERVERONLY extern LPDIRECTDRAW lpDD; extern qboolean DDActive; extern LPDIRECTDRAWSURFACE lpPrimary; extern LPDIRECTDRAWSURFACE lpFrontBuffer; extern LPDIRECTDRAWSURFACE lpBackBuffer; extern LPDIRECTDRAWPALETTE lpDDPal; extern LPDIRECTSOUND pDS; extern LPDIRECTSOUNDBUFFER pDSBuf; extern DWORD gSndBufSize; //#define SNDBUFSIZE 65536 #endif typedef enum { MS_WINDOWED, MS_FULLSCREEN, MS_FULLDIB, MS_UNINIT } modestate_t; extern modestate_t modestate; extern HWND mainwindow; extern qboolean ActiveApp; extern qboolean WinNT; // // vid.h (or remove) // int VID_ForceUnlockedAndReturnState(void); void VID_ForceLockState(int lk); void VID_SetDefaultMode(void); extern int window_center_x, window_center_y; extern RECT window_rect; // // input.h (or remove) // void IN_ShowMouse(void); void IN_DeactivateMouse(void); void IN_HideMouse(void); void IN_ActivateMouse(void); void IN_RestoreOriginalMouseState(void); void IN_SetQuakeMouseState(void); void IN_MouseEvent(int mstate); void IN_UpdateClipCursor(void); extern qboolean mouseinitialized; // // sound.h (or remove) // void S_BlockSound(void); void S_UnblockSound(void); // cdaudio_driver.h LONG CDDrv_MessageHandler(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); // misc stuff that should be elsewhere... extern qboolean winsock_lib_initialized; extern HWND hwnd_dialog; extern HANDLE hinput, houtput; /* * net stuff */ #define MAXHOSTNAMELEN 256 extern int winsock_initialized; extern WSADATA winsockdata; #endif /* WINQUAKE_H */