mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2024-12-04 14:36:22 +00:00
158129ae37
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
100 lines
2.3 KiB
C
100 lines
2.3 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
|
|
|
|
// FIXME - mousewheel redefined? What is this magic number?
|
|
#include <windows.h>
|
|
#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_FULLDIB, MS_UNINIT
|
|
} modestate_t;
|
|
|
|
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;
|
|
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_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;
|
|
|
|
/*
|
|
* net stuff
|
|
*/
|
|
#define MAXHOSTNAMELEN 256
|
|
extern int winsock_initialized;
|
|
extern WSADATA winsockdata;
|
|
|
|
#endif /* WINQUAKE_H */
|