mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-19 16:00:56 +00:00
s/grap/grab/g
This commit is contained in:
parent
b48a3d3c73
commit
07fe1862c7
2 changed files with 5 additions and 5 deletions
2
README
2
README
|
@ -262,7 +262,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?
|
||||
- Open the console with pressing ~ or ^. If you want Quake II to never
|
||||
grab the mouse set "in_grap" to 0, if Quake II should never release
|
||||
grab the mouse set "in_grab" to 0, if Quake II should never release
|
||||
the mouse set 1, for releasing the mouse when open the console set
|
||||
to 2. The default is 2.
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
static int old_windowed_mouse;
|
||||
static cvar_t *windowed_mouse;
|
||||
static cvar_t *in_grap;
|
||||
static cvar_t *in_grab;
|
||||
static int mouse_x, mouse_y;
|
||||
static int old_mouse_x, old_mouse_y;
|
||||
static int mouse_buttonstate;
|
||||
|
@ -321,7 +321,7 @@ void IN_Update(void)
|
|||
|
||||
/* Grab and ungrab the mouse if the
|
||||
console is opened */
|
||||
if (in_grap->value == 2)
|
||||
if (in_grab->value == 2)
|
||||
{
|
||||
if (old_windowed_mouse != windowed_mouse->value)
|
||||
{
|
||||
|
@ -337,7 +337,7 @@ void IN_Update(void)
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (in_grap->value == 1)
|
||||
else if (in_grab->value == 1)
|
||||
{
|
||||
SDL_WM_GrabInput(SDL_GRAB_ON);
|
||||
}
|
||||
|
@ -454,7 +454,7 @@ IN_BackendInit ( in_state_t *in_state_p )
|
|||
SDL_EnableKeyRepeat( SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL );
|
||||
|
||||
windowed_mouse = ri.Cvar_Get ("windowed_mouse", "1", CVAR_ARCHIVE);
|
||||
in_grap = ri.Cvar_Get ("in_grap", "2", CVAR_ARCHIVE);
|
||||
in_grab = ri.Cvar_Get ("in_grab", "2", CVAR_ARCHIVE);
|
||||
|
||||
Com_Printf( "Input initialized.\n" );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue