#include "../client/client.h"
#include "win_local.h"
Include dependency graph for win_wndproc.c:

Go to the source code of this file.
Defines | |
| #define | VID_NUM_MODES ( sizeof( vid_modes ) / sizeof( vid_modes[0] ) ) |
| #define | WM_MOUSEWHEEL (WM_MOUSELAST+1) |
Functions | |
| LONG WINAPI | MainWndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| int | MapKey (int key) |
| void | VID_AppActivate (BOOL fActive, BOOL minimize) |
| void | WIN_DisableAltTab (void) |
| void | WIN_EnableAltTab (void) |
Variables | |
| WinVars_t | g_wv |
| cvar_t * | in_logitechbug |
| cvar_t * | in_mouse |
| UINT | MSH_MOUSEWHEEL |
| cvar_t * | r_fullscreen |
| qboolean | s_alttab_disabled |
| byte | s_scantokey [128] |
| cvar_t * | vid_xpos |
| cvar_t * | vid_ypos |
|
|
Definition at line 39 of file win_wndproc.c. |
|
|
Definition at line 29 of file win_wndproc.c. Referenced by MainWndProc(). |
|
||||||||||||||||||||
|
|
|
|
Definition at line 147 of file win_wndproc.c. References K_DEL, K_DOWNARROW, K_END, K_HOME, K_INS, K_LEFTARROW, K_PAUSE, K_PGDN, K_PGUP, K_RIGHTARROW, K_UPARROW, modified, qboolean, and s_scantokey. Referenced by MainWndProc(). 00148 {
00149 int result;
00150 int modified;
00151 qboolean is_extended;
00152
00153 // Com_Printf( "0x%x\n", key);
00154
00155 modified = ( key >> 16 ) & 255;
00156
00157 if ( modified > 127 )
00158 return 0;
00159
00160 if ( key & ( 1 << 24 ) )
00161 {
00162 is_extended = qtrue;
00163 }
00164 else
00165 {
00166 is_extended = qfalse;
00167 }
00168
00169 result = s_scantokey[modified];
00170
00171 if ( !is_extended )
00172 {
00173 switch ( result )
00174 {
00175 case K_HOME:
00176 return K_KP_HOME;
00177 case K_UPARROW:
00178 return K_KP_UPARROW;
00179 case K_PGUP:
00180 return K_KP_PGUP;
00181 case K_LEFTARROW:
00182 return K_KP_LEFTARROW;
00183 case K_RIGHTARROW:
00184 return K_KP_RIGHTARROW;
00185 case K_END:
00186 return K_KP_END;
00187 case K_DOWNARROW:
00188 return K_KP_DOWNARROW;
00189 case K_PGDN:
00190 return K_KP_PGDN;
00191 case K_INS:
00192 return K_KP_INS;
00193 case K_DEL:
00194 return K_KP_DEL;
00195 default:
00196 return result;
00197 }
00198 }
00199 else
00200 {
00201 switch ( result )
00202 {
00203 case K_PAUSE:
00204 return K_KP_NUMLOCK;
00205 case 0x0D:
00206 return K_KP_ENTER;
00207 case 0x2F:
00208 return K_KP_SLASH;
00209 case 0xAF:
00210 return K_KP_PLUS;
00211 }
00212 return result;
00213 }
00214 }
|
|
||||||||||||
|
Definition at line 87 of file win_wndproc.c. References WinVars_t::activeApp, Com_DPrintf(), g_wv, IN_Activate(), WinVars_t::isMinimized, Key_ClearStates(), qfalse, and qtrue. Referenced by MainWndProc(). 00088 {
00089 g_wv.isMinimized = minimize;
00090
00091 Com_DPrintf("VID_AppActivate: %i\n", fActive );
00092
00093 Key_ClearStates(); // FIXME!!!
00094
00095 // we don't want to act like we're active if we're minimized
00096 if (fActive && !g_wv.isMinimized )
00097 {
00098 g_wv.activeApp = qtrue;
00099 }
00100 else
00101 {
00102 g_wv.activeApp = qfalse;
00103 }
00104
00105 // minimize/restore mouse-capture on demand
00106 if (!g_wv.activeApp )
00107 {
00108 IN_Activate (qfalse);
00109 }
00110 else
00111 {
00112 IN_Activate (qtrue);
00113 }
00114 }
|
Here is the call graph for this function:

|
|
Definition at line 45 of file win_wndproc.c. References BOOL, Cvar_VariableString(), Q_stricmp(), and s_alttab_disabled. Referenced by MainWndProc(). 00046 {
00047 if ( s_alttab_disabled )
00048 return;
00049
00050 if ( !Q_stricmp( Cvar_VariableString( "arch" ), "winnt" ) )
00051 {
00052 RegisterHotKey( 0, 0, MOD_ALT, VK_TAB );
00053 }
00054 else
00055 {
00056 BOOL old;
00057
00058 SystemParametersInfo( SPI_SCREENSAVERRUNNING, 1, &old, 0 );
00059 }
00060 s_alttab_disabled = qtrue;
00061 }
|
Here is the call graph for this function:

|
|
Definition at line 63 of file win_wndproc.c. References BOOL, Cvar_VariableString(), Q_stricmp(), and s_alttab_disabled. Referenced by MainWndProc(). 00064 {
00065 if ( s_alttab_disabled )
00066 {
00067 if ( !Q_stricmp( Cvar_VariableString( "arch" ), "winnt" ) )
00068 {
00069 UnregisterHotKey( 0, 0 );
00070 }
00071 else
00072 {
00073 BOOL old;
00074
00075 SystemParametersInfo( SPI_SCREENSAVERRUNNING, 0, &old, 0 );
00076 }
00077
00078 s_alttab_disabled = qfalse;
00079 }
00080 }
|
Here is the call graph for this function:

|
|
Definition at line 26 of file win_wndproc.c. Referenced by GLimp_Init(), GLimp_Shutdown(), GLW_CreateWindow(), GLW_InitDriver(), IN_ActivateWin32Mouse(), IN_Frame(), IN_InitDIMouse(), IN_MouseEvent(), IN_StartupMouse(), MainWndProc(), MIDI_NoteOff(), MIDI_NoteOn(), SNDDMA_Activate(), SNDDMA_InitDS(), SNDDMA_Shutdown(), Sys_CreateConsole(), Sys_GetEvent(), Sys_Init(), Sys_SetErrorText(), VID_AppActivate(), and WinMain(). |
|
|
Definition at line 84 of file win_input.c. Referenced by IN_Init(), and MainWndProc(). |
|
|
Definition at line 83 of file win_input.c. Referenced by IN_ActivateMouse(), IN_Init(), IN_Startup(), IN_StartupMouse(), and MainWndProc(). |
|
|
Definition at line 32 of file win_wndproc.c. Referenced by MainWndProc(). |
|
|
Definition at line 37 of file win_wndproc.c. |
|
|
Definition at line 43 of file win_wndproc.c. Referenced by WIN_DisableAltTab(), and WIN_EnableAltTab(). |
|
|
Initial value:
{
0 , 27, '1', '2', '3', '4', '5', '6',
'7', '8', '9', '0', '-', '=', K_BACKSPACE, 9,
'q', 'w', 'e', 'r', 't', 'y', 'u', 'i',
'o', 'p', '[', ']', 13 , K_CTRL,'a', 's',
'd', 'f', 'g', 'h', 'j', 'k', 'l', ';',
'\'' , '`', K_SHIFT,'\\', 'z', 'x', 'c', 'v',
'b', 'n', 'm', ',', '.', '/', K_SHIFT,'*',
K_ALT,' ', K_CAPSLOCK , K_F1, K_F2, K_F3, K_F4, K_F5,
K_F6, K_F7, K_F8, K_F9, K_F10, K_PAUSE, 0 , K_HOME,
K_UPARROW,K_PGUP,K_KP_MINUS,K_LEFTARROW,K_KP_5,K_RIGHTARROW, K_KP_PLUS,K_END,
K_DOWNARROW,K_PGDN,K_INS,K_DEL,0,0, 0, K_F11,
K_F12,0 , 0 , 0 , 0 , 0 , 0 , 0,
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0,
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0,
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0,
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0
}
Definition at line 118 of file win_wndproc.c. Referenced by MapKey(). |
|
|
Definition at line 35 of file win_wndproc.c. Referenced by CreateGameWindow(), GLW_CreateWindow(), and MainWndProc(). |
|
|
Definition at line 36 of file win_wndproc.c. Referenced by CreateGameWindow(), GLW_CreateWindow(), and MainWndProc(). |
1.3.9.1