mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2024-11-23 16:10:09 +00:00
a86ef4fd83
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
98 lines
2.2 KiB
C
98 lines
2.2 KiB
C
/*
|
|
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
|
|
|
|
#include <windows.h>
|
|
#include <winsock2.h>
|
|
|
|
// FIXME - mousewheel redefined? What is this magic number?
|
|
#ifndef WM_MOUSEWHEEL
|
|
# define WM_MOUSEWHEEL 0x020A
|
|
#endif
|
|
|
|
#include "qtypes.h"
|
|
|
|
extern HINSTANCE global_hInstance;
|
|
extern int global_nCmdShow;
|
|
|
|
typedef enum {
|
|
MS_WINDOWED, MS_FULLSCREEN, MS_UNINIT
|
|
} modestate_t;
|
|
|
|
extern HWND mainwindow;
|
|
extern qboolean ActiveApp;
|
|
extern qboolean WinNT;
|
|
|
|
//
|
|
// vid.h (or remove)
|
|
//
|
|
|
|
void VID_SetDefaultMode(void);
|
|
|
|
extern qboolean DDActive;
|
|
|
|
//
|
|
// input.h (or remove)
|
|
//
|
|
|
|
void IN_ShowMouse(void);
|
|
void IN_DeactivateMouse(void);
|
|
void IN_HideMouse(void);
|
|
void IN_ActivateMouse(void);
|
|
void IN_MouseEvent(int mstate);
|
|
void IN_UpdateClipCursor(void);
|
|
void IN_UpdateWindowRect(int x, int y, int width, int height);
|
|
|
|
extern int in_window_center_x, in_window_center_y;
|
|
extern RECT in_window_rect;
|
|
|
|
//
|
|
// 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;
|
|
|
|
/*
|
|
* net stuff
|
|
*/
|
|
#define MAXHOSTNAMELEN 256
|
|
extern int winsock_initialized;
|
|
extern WSADATA winsockdata;
|
|
|
|
#endif /* WINQUAKE_H */
|