~ubuntu-branches/ubuntu/precise/openarena/precise

« back to all changes in this revision

Viewing changes to code/win32/win_local.h

  • Committer: Bazaar Package Importer
  • Author(s): Ansgar Burchardt
  • Date: 2008-09-05 21:14:51 UTC
  • mfrom: (1.2.1 upstream) (2.1.5 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080905211451-243bmbl6l6gdav7l
* Remove non-free code/tools/lcc (Closes: #496346)
  + Remove hunk from patch 10_fix_build_and_binary_on_alpha
  + debian/rules: Add BUILD_GAME_QVM=0 to $(MAKE) call
    (thanks to Peter De Wachter)
* Remove code/libs containing binary libraries for Mac OS X and Win32
* debian/copyright: Explain which parts of upstream's sources were removed
* debian/rules: replace ${source:Upstream-Version} by 0.7.7
  because the variable also contains the `+dfsg1' part
* Add -fsigned-char to compiler options (Closes: #487970)
  (thanks to Peter De Wachter)
* Add myself to Uploaders
* debian/control: Remove article from beginning of short description,
  don't start short description with a capital letter
* debian/openarena.6: Escape minus signs
  + fixes lintian warnings: hyphen-used-as-minus-sign

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
===========================================================================
3
 
Copyright (C) 1999-2005 Id Software, Inc.
4
 
 
5
 
This file is part of Quake III Arena source code.
6
 
 
7
 
Quake III Arena source code is free software; you can redistribute it
8
 
and/or modify it under the terms of the GNU General Public License as
9
 
published by the Free Software Foundation; either version 2 of the License,
10
 
or (at your option) any later version.
11
 
 
12
 
Quake III Arena source code is distributed in the hope that it will be
13
 
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
GNU General Public License for more details.
16
 
 
17
 
You should have received a copy of the GNU General Public License
18
 
along with Quake III Arena source code; if not, write to the Free Software
19
 
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20
 
===========================================================================
21
 
*/
22
 
// win_local.h: Win32-specific Quake3 header file
23
 
 
24
 
#if defined (_MSC_VER) && (_MSC_VER >= 1200)
25
 
#pragma warning(disable : 4201)
26
 
#pragma warning( push )
27
 
#endif
28
 
#include <windows.h>
29
 
#if defined (_MSC_VER) && (_MSC_VER >= 1200)
30
 
#pragma warning( pop )
31
 
#endif
32
 
 
33
 
#define DIRECTSOUND_VERSION     0x0300
34
 
#define DIRECTINPUT_VERSION     0x0300
35
 
 
36
 
#include <dinput.h>
37
 
#include <dsound.h>
38
 
#include <winsock.h>
39
 
#include <wsipx.h>
40
 
#include <shlobj.h>
41
 
 
42
 
void    IN_MouseEvent (int mstate);
43
 
 
44
 
void Sys_QueEvent( int time, sysEventType_t type, int value, int value2, int ptrLength, void *ptr );
45
 
 
46
 
void    Sys_CreateConsole( void );
47
 
void    Sys_DestroyConsole( void );
48
 
 
49
 
char    *Sys_ConsoleInput (void);
50
 
 
51
 
qboolean        Sys_GetPacket ( netadr_t *net_from, msg_t *net_message );
52
 
 
53
 
// Input subsystem
54
 
 
55
 
void    IN_Init (void);
56
 
void    IN_Shutdown (void);
57
 
void    IN_JoystickCommands (void);
58
 
 
59
 
void    IN_Move (usercmd_t *cmd);
60
 
// add additional non keyboard / non mouse movement on top of the keyboard move cmd
61
 
 
62
 
void    IN_DeactivateWin32Mouse( void);
63
 
 
64
 
void    IN_Activate (qboolean active);
65
 
void    IN_Frame (void);
66
 
 
67
 
// window procedure
68
 
LONG WINAPI MainWndProc (
69
 
    HWND    hWnd,
70
 
    UINT    uMsg,
71
 
    WPARAM  wParam,
72
 
    LPARAM  lParam);
73
 
 
74
 
void Conbuf_AppendText( const char *msg );
75
 
 
76
 
void SNDDMA_Activate( void );
77
 
int  SNDDMA_InitDS (void);
78
 
 
79
 
typedef struct
80
 
{
81
 
        
82
 
        HINSTANCE               reflib_library;         // Handle to refresh DLL 
83
 
        qboolean                reflib_active;
84
 
 
85
 
        HWND                    hWnd;
86
 
        HINSTANCE               hInstance;
87
 
        qboolean                activeApp;
88
 
        qboolean                isMinimized;
89
 
        OSVERSIONINFO   osversion;
90
 
 
91
 
        // when we get a windows message, we store the time off so keyboard processing
92
 
        // can know the exact time of an event
93
 
        unsigned                sysMsgTime;
94
 
} WinVars_t;
95
 
 
96
 
extern WinVars_t        g_wv;