mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
Unlocke die Maus, wenn Konsole offen
This commit is contained in:
parent
588db0e4cd
commit
c1094db726
6 changed files with 8 additions and 3 deletions
2
README
2
README
|
@ -252,7 +252,7 @@ How do I record a demo?
|
|||
|
||||
When playing in window mode my is locked onto the window. Can I change
|
||||
that, e.g. that Quake II is behaving like a normal window?
|
||||
- Set "_windowed_mouse" to 0.
|
||||
- Open the console with pressing ~ or ^
|
||||
|
||||
Hey, the game renders unplayable slow but my OpenGL is working?!
|
||||
- If you're using Mesa 7.0, 7.1, 7.2 or 7.3 thats a known bug of
|
||||
|
|
|
@ -502,6 +502,7 @@ void SCR_RunConsole (void)
|
|||
|
||||
if (scr_conlines < scr_con_current)
|
||||
{
|
||||
Cvar_SetValue("_windowed_mouse", 1);
|
||||
scr_con_current -= scr_conspeed->value*cls.frametime;
|
||||
if (scr_conlines > scr_con_current)
|
||||
scr_con_current = scr_conlines;
|
||||
|
@ -509,6 +510,7 @@ void SCR_RunConsole (void)
|
|||
}
|
||||
else if (scr_conlines > scr_con_current)
|
||||
{
|
||||
Cvar_SetValue("_windowed_mouse", 0);
|
||||
scr_con_current += scr_conspeed->value*cls.frametime;
|
||||
if (scr_conlines < scr_con_current)
|
||||
scr_con_current = scr_conlines;
|
||||
|
|
|
@ -71,12 +71,14 @@ void Con_ToggleConsole_f (void)
|
|||
|
||||
if (cl.attractloop)
|
||||
{
|
||||
Cvar_SetValue("_windowed_mouse", 0);
|
||||
Cbuf_AddText("killserver\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if (cls.state == ca_disconnected)
|
||||
{ // start the demo loop again
|
||||
Cvar_SetValue("_windowed_mouse", 1);
|
||||
Cbuf_AddText ("d1\n");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -260,7 +260,7 @@ void VID_MenuInit( void )
|
|||
sw_stipplealpha = Cvar_Get( "sw_stipplealpha", "0", CVAR_ARCHIVE );
|
||||
|
||||
if ( !_windowed_mouse)
|
||||
_windowed_mouse = Cvar_Get( "_windowed_mouse", "0", CVAR_ARCHIVE );
|
||||
_windowed_mouse = Cvar_Get( "_windowed_mouse", "1", 0 );
|
||||
|
||||
s_mode_list[SOFTWARE_MENU].curvalue = sw_mode->value;
|
||||
s_mode_list[OPENGL_MENU].curvalue = gl_mode->value;
|
||||
|
|
|
@ -69,7 +69,7 @@ static float old_windowed_mouse;
|
|||
static cvar_t *_windowed_mouse;
|
||||
|
||||
void RW_IN_PlatformInit() {
|
||||
_windowed_mouse = ri.Cvar_Get ("_windowed_mouse", "1", CVAR_ARCHIVE);
|
||||
_windowed_mouse = ri.Cvar_Get ("_windowed_mouse", "1", 0);
|
||||
}
|
||||
|
||||
void RW_IN_Activate(qboolean active)
|
||||
|
|
|
@ -278,6 +278,7 @@ void SV_SpawnServer (char *server, char *spawnpoint, server_state_t serverstate,
|
|||
|
||||
// set serverinfo variable
|
||||
Cvar_FullSet ("mapname", sv.name, CVAR_SERVERINFO | CVAR_NOSET);
|
||||
Cvar_SetValue("_windowed_mouse", 1);
|
||||
|
||||
Com_Printf ("-------------------------------------\n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue