mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-02-15 00:10:54 +00:00
A little more...
This commit is contained in:
parent
5a06f2f03e
commit
022803757a
10 changed files with 231 additions and 209 deletions
|
@ -3,14 +3,13 @@
|
||||||
|
|
||||||
(description)
|
(description)
|
||||||
|
|
||||||
|
Copyright (C) 1996-1997 Id Software, Inc.
|
||||||
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
||||||
Please see the file "AUTHORS" for a list of contributors
|
Please see the file "AUTHORS" for a list of contributors
|
||||||
|
|
||||||
Author: Jeff Teunissen <deek@quakeforge.net>
|
Author: Jeff Teunissen <deek@quakeforge.net>
|
||||||
Date: 09 Feb 2000
|
Date: 09 Feb 2000
|
||||||
|
|
||||||
This file is part of the QuakeForge Core system.
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU General Public License
|
modify it under the terms of the GNU General Public License
|
||||||
as published by the Free Software Foundation; either version 2
|
as published by the Free Software Foundation; either version 2
|
||||||
|
@ -25,9 +24,11 @@
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to:
|
along with this program; if not, write to:
|
||||||
|
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
59 Temple Place - Suite 330
|
59 Temple Place - Suite 330
|
||||||
Boston, MA 02111-1307, USA.
|
Boston, MA 02111-1307, USA
|
||||||
|
|
||||||
|
$Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
@ -66,33 +67,19 @@ int fps_count;
|
||||||
int vcrFile = -1;
|
int vcrFile = -1;
|
||||||
double host_time;
|
double host_time;
|
||||||
|
|
||||||
//cvar_t sys_ticrate = {"sys_ticrate","0.05"};
|
|
||||||
cvar_t *sys_ticrate;
|
cvar_t *sys_ticrate;
|
||||||
//cvar_t serverprofile = {"serverprofile", "0"};
|
|
||||||
cvar_t *serverprofile;
|
cvar_t *serverprofile;
|
||||||
//cvar_t host_framerate = {"host_framerate", "0"}; // set for slow motion
|
|
||||||
cvar_t *host_framerate;
|
cvar_t *host_framerate;
|
||||||
//cvar_t samelevel = {"samelevel", "0"};
|
|
||||||
cvar_t *samelevel;
|
cvar_t *samelevel;
|
||||||
//cvar_t noexit = {"noexit", "0", CVAR_USERINFO|CVAR_SERVERINFO};
|
|
||||||
cvar_t *noexit;
|
cvar_t *noexit;
|
||||||
//cvar_t pausable = {"pausable", "1"};
|
|
||||||
cvar_t *pausable;
|
cvar_t *pausable;
|
||||||
//cvar_t temp1 = {"temp1", "0"};
|
|
||||||
cvar_t *temp1;
|
cvar_t *temp1;
|
||||||
//cvar_t sv_filter = {"sv_filter", "1"}; // strip \n, \r in names?
|
|
||||||
cvar_t *sv_filter;
|
cvar_t *sv_filter;
|
||||||
//cvar_t teamplay = {"teamplay","0",CVAR_USERINFO|CVAR_SERVERINFO};
|
|
||||||
cvar_t *teamplay;
|
cvar_t *teamplay;
|
||||||
//cvar_t deathmatch = {"deathmatch","0"}; // 0, 1, or 2
|
|
||||||
cvar_t *deathmatch;
|
cvar_t *deathmatch;
|
||||||
//cvar_t coop = {"coop","0"}; // 0 or 1
|
|
||||||
cvar_t *coop;
|
cvar_t *coop;
|
||||||
//cvar_t fraglimit = {"fraglimit","0",CVAR_USERINFO|CVAR_SERVERINFO};
|
|
||||||
cvar_t *fraglimit;
|
cvar_t *fraglimit;
|
||||||
//cvar_t skill = {"skill","1"}; // 0 - 3
|
|
||||||
cvar_t *skill;
|
cvar_t *skill;
|
||||||
//cvar_t timelimit = {"timelimit","0",CVAR_USERINFO|CVAR_SERVERINFO};
|
|
||||||
cvar_t *timelimit;
|
cvar_t *timelimit;
|
||||||
|
|
||||||
#ifdef UQUAKE
|
#ifdef UQUAKE
|
||||||
|
@ -730,40 +717,26 @@ Host_InitLocal ( void )
|
||||||
{
|
{
|
||||||
Host_InitCommands ();
|
Host_InitCommands ();
|
||||||
|
|
||||||
// Cvar_RegisterVariable (&host_framerate);
|
|
||||||
host_framerate = Cvar_Get ("host_framerate","0",0,"None");
|
host_framerate = Cvar_Get ("host_framerate","0",0,"None");
|
||||||
|
|
||||||
// Cvar_RegisterVariable (&sys_ticrate);
|
|
||||||
sys_ticrate = Cvar_Get ("sys_ticrate","0.05",0,"None");
|
sys_ticrate = Cvar_Get ("sys_ticrate","0.05",0,"None");
|
||||||
// Cvar_RegisterVariable (&serverprofile);
|
|
||||||
serverprofile = Cvar_Get ("serverprofile","0",0,"None");
|
serverprofile = Cvar_Get ("serverprofile","0",0,"None");
|
||||||
|
|
||||||
// Cvar_RegisterVariable (&fraglimit);
|
|
||||||
fraglimit = Cvar_Get ("fraglimit","0",CVAR_USERINFO|CVAR_SERVERINFO,
|
fraglimit = Cvar_Get ("fraglimit","0",CVAR_USERINFO|CVAR_SERVERINFO,
|
||||||
"None");
|
"None");
|
||||||
// Cvar_RegisterVariable (&timelimit);
|
|
||||||
timelimit = Cvar_Get ("timelimit","0",CVAR_USERINFO|CVAR_SERVERINFO,
|
timelimit = Cvar_Get ("timelimit","0",CVAR_USERINFO|CVAR_SERVERINFO,
|
||||||
"None");
|
"None");
|
||||||
// Cvar_RegisterVariable (&teamplay);
|
|
||||||
teamplay = Cvar_Get ("teamplay","0",CVAR_USERINFO|CVAR_SERVERINFO,
|
teamplay = Cvar_Get ("teamplay","0",CVAR_USERINFO|CVAR_SERVERINFO,
|
||||||
"None");
|
"None");
|
||||||
// Cvar_RegisterVariable (&samelevel);
|
|
||||||
samelevel = Cvar_Get ("samelevel","0",0,"None");
|
samelevel = Cvar_Get ("samelevel","0",0,"None");
|
||||||
// Cvar_RegisterVariable (&noexit);
|
|
||||||
noexit = Cvar_Get ("noexit","0",CVAR_USERINFO|CVAR_SERVERINFO,"None");
|
noexit = Cvar_Get ("noexit","0",CVAR_USERINFO|CVAR_SERVERINFO,"None");
|
||||||
// Cvar_RegisterVariable (&skill);
|
|
||||||
skill = Cvar_Get ("skill","1",0,"None");
|
skill = Cvar_Get ("skill","1",0,"None");
|
||||||
// Cvar_RegisterVariable (&deathmatch);
|
|
||||||
deathmatch = Cvar_Get ("deathmatch","0",0,"None");
|
deathmatch = Cvar_Get ("deathmatch","0",0,"None");
|
||||||
// Cvar_RegisterVariable (&coop);
|
|
||||||
coop = Cvar_Get ("coop","0",0,"None");
|
coop = Cvar_Get ("coop","0",0,"None");
|
||||||
|
|
||||||
// Cvar_RegisterVariable (&pausable);
|
|
||||||
pausable = Cvar_Get ("pausable","1",0,"None");
|
pausable = Cvar_Get ("pausable","1",0,"None");
|
||||||
|
|
||||||
// Cvar_RegisterVariable (&temp1);
|
|
||||||
temp1 = Cvar_Get ("temp1","0",0,"None");
|
temp1 = Cvar_Get ("temp1","0",0,"None");
|
||||||
// Cvar_RegisterVariable (&sv_filter);
|
|
||||||
sv_filter = Cvar_Get ("sv_filter","1",0,"None");
|
sv_filter = Cvar_Get ("sv_filter","1",0,"None");
|
||||||
|
|
||||||
Host_FindMaxClients ();
|
Host_FindMaxClients ();
|
||||||
|
|
|
@ -1,24 +1,31 @@
|
||||||
/*
|
/*
|
||||||
client.h
|
image.h
|
||||||
Copyright (C) 1996-1997 Id Software, Inc.
|
|
||||||
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
|
||||||
Please see the file "AUTHORS" for a list of contributors
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
(description)
|
||||||
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,
|
Copyright (C) 1996-1997 Id Software, Inc.
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
Please see the file "AUTHORS" for a list of contributors
|
||||||
|
|
||||||
See the GNU General Public License for more details.
|
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.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
This program is distributed in the hope that it will be useful,
|
||||||
along with this program; if not, write to the Free Software
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
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:
|
||||||
|
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
59 Temple Place - Suite 330
|
||||||
|
Boston, MA 02111-1307, USA
|
||||||
|
|
||||||
|
$Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <zone.h>
|
#include <zone.h>
|
||||||
|
|
|
@ -1,33 +1,41 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 1996-1997 Id Software, Inc.
|
in_aa.c
|
||||||
Copyright (C) 1999-2000 contributors of the QuakeForge project
|
|
||||||
Copyright (C) 1999-2000 Nelson Rush.
|
|
||||||
|
|
||||||
Please see the file "AUTHORS" for a list of contributors
|
(description)
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
Copyright (C) 1996-1997 Id Software, Inc.
|
||||||
modify it under the terms of the GNU General Public License
|
Copyright (C) 2000 Nelson Rush.
|
||||||
as published by the Free Software Foundation; either version 2
|
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
||||||
of the License, or (at your option) any later version.
|
Please see the file "AUTHORS" for a list of contributors
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is free software; you can redistribute it and/or
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
modify it under the terms of the GNU General Public License
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
See the GNU General Public License for more details.
|
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.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
See the GNU General Public License for more details.
|
||||||
along with this program; if not, write to the Free Software
|
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to:
|
||||||
|
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
59 Temple Place - Suite 330
|
||||||
|
Boston, MA 02111-1307, USA
|
||||||
|
|
||||||
|
$Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "qtypes.h"
|
#include <qtypes.h>
|
||||||
#include "quakedef.h"
|
#include <quakedef.h>
|
||||||
#include "keys.h"
|
#include <keys.h>
|
||||||
#include "client.h"
|
#include <client.h>
|
||||||
#include "sys.h"
|
#include <sys.h>
|
||||||
#include "console.h"
|
#include <console.h>
|
||||||
#include "cvar.h"
|
#include <cvar.h>
|
||||||
#include <cmd.h>
|
#include <cmd.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -1,28 +1,35 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 1996-1997 Id Software, Inc.
|
in_dos.c
|
||||||
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
|
||||||
Please see the file "AUTHORS" for a list of contributors
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
(description)
|
||||||
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,
|
Copyright (C) 1996-1997 Id Software, Inc.
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
Please see the file "AUTHORS" for a list of contributors
|
||||||
|
|
||||||
See the GNU General Public License for more details.
|
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.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
This program is distributed in the hope that it will be useful,
|
||||||
along with this program; if not, write to the Free Software
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
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:
|
||||||
|
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
59 Temple Place - Suite 330
|
||||||
|
Boston, MA 02111-1307, USA
|
||||||
|
|
||||||
|
$Id$
|
||||||
*/
|
*/
|
||||||
// in_mouse.c -- dos mouse code
|
|
||||||
|
|
||||||
#include "quakedef.h"
|
#include <quakedef.h>
|
||||||
#include "dosisms.h"
|
#include <dosisms.h>
|
||||||
|
|
||||||
#define AUX_FLAG_FREELOOK 0x00000001
|
#define AUX_FLAG_FREELOOK 0x00000001
|
||||||
|
|
||||||
|
|
|
@ -1,28 +1,35 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 1996-1997 Id Software, Inc.
|
in_null.c
|
||||||
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
|
||||||
Please see the file "AUTHORS" for a list of contributors
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
skeleton input driver code
|
||||||
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,
|
Copyright (C) 1996-1997 Id Software, Inc.
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
Please see the file "AUTHORS" for a list of contributors
|
||||||
|
|
||||||
See the GNU General Public License for more details.
|
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.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
This program is distributed in the hope that it will be useful,
|
||||||
along with this program; if not, write to the Free Software
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
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:
|
||||||
|
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
59 Temple Place - Suite 330
|
||||||
|
Boston, MA 02111-1307, USA
|
||||||
|
|
||||||
|
$Id$
|
||||||
*/
|
*/
|
||||||
// in_null.c -- for systems without inputs...
|
|
||||||
|
|
||||||
#include "quakedef.h"
|
#include <quakedef.h>
|
||||||
#include "input.h"
|
#include <input.h>
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -1,25 +1,32 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 1996-1997 Id Software, Inc.
|
in_sun.c
|
||||||
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
|
||||||
Please see the file "AUTHORS" for a list of contributors
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
Sun X11 input handler
|
||||||
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,
|
Copyright (C) 1996-1997 Id Software, Inc.
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
Please see the file "AUTHORS" for a list of contributors
|
||||||
|
|
||||||
See the GNU General Public License for more details.
|
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.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
This program is distributed in the hope that it will be useful,
|
||||||
along with this program; if not, write to the Free Software
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
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:
|
||||||
|
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
59 Temple Place - Suite 330
|
||||||
|
Boston, MA 02111-1307, USA
|
||||||
|
|
||||||
|
$Id$
|
||||||
*/
|
*/
|
||||||
// in_sun.c -- SUN/X mouse input handler
|
|
||||||
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -37,7 +44,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
#include <X11/keysym.h>
|
#include <X11/keysym.h>
|
||||||
|
|
||||||
#include "quakedef.h"
|
#include <quakedef.h>
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,33 +1,41 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 1996-1997 Id Software, Inc.
|
in_svgalib.c
|
||||||
Copyright (C) 1999-2000 contributors of the QuakeForge project
|
|
||||||
Copyright (C) 1999-2000 Marcus Sundberg [mackan@stacken.kth.se]
|
|
||||||
|
|
||||||
Please see the file "AUTHORS" for a list of contributors
|
(description)
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
Copyright (C) 1996-1997 Id Software, Inc.
|
||||||
modify it under the terms of the GNU General Public License
|
Copyright (C) 1999-2000 Marcus Sundberg [mackan@stacken.kth.se]
|
||||||
as published by the Free Software Foundation; either version 2
|
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
||||||
of the License, or (at your option) any later version.
|
Please see the file "AUTHORS" for a list of contributors
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is free software; you can redistribute it and/or
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
modify it under the terms of the GNU General Public License
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
See the GNU General Public License for more details.
|
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.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
See the GNU General Public License for more details.
|
||||||
along with this program; if not, write to the Free Software
|
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to:
|
||||||
|
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
59 Temple Place - Suite 330
|
||||||
|
Boston, MA 02111-1307, USA
|
||||||
|
|
||||||
|
$Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "qtypes.h"
|
#include <qtypes.h>
|
||||||
#include "quakedef.h"
|
#include <quakedef.h>
|
||||||
#include "keys.h"
|
#include <keys.h>
|
||||||
#include "client.h"
|
#include <client.h>
|
||||||
#include "sys.h"
|
#include <sys.h>
|
||||||
#include "console.h"
|
#include <console.h>
|
||||||
#include "cvar.h"
|
#include <cvar.h>
|
||||||
#include <cmd.h>
|
#include <cmd.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -56,18 +64,8 @@ static int mx, my;
|
||||||
static void IN_init_kb();
|
static void IN_init_kb();
|
||||||
static void IN_init_mouse();
|
static void IN_init_mouse();
|
||||||
|
|
||||||
//cvar_t _windowed_mouse = {"_windowed_mouse", "1", CVAR_ARCHIVE};
|
|
||||||
cvar_t *_windowed_mouse;
|
cvar_t *_windowed_mouse;
|
||||||
//cvar_t m_filter = {"m_filter","0"};
|
|
||||||
cvar_t *m_filter;
|
cvar_t *m_filter;
|
||||||
/*
|
|
||||||
static cvar_t mouse_button_commands[3] =
|
|
||||||
{
|
|
||||||
{"mouse1","+attack"},
|
|
||||||
{"mouse2","+strafe"},
|
|
||||||
{"mouse3","+forward"},
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
static cvar_t *mouse_button_commands[3];
|
static cvar_t *mouse_button_commands[3];
|
||||||
|
|
||||||
static void keyhandler(int scancode, int state)
|
static void keyhandler(int scancode, int state)
|
||||||
|
@ -243,13 +241,9 @@ static void IN_init_mouse()
|
||||||
char *mousedev;
|
char *mousedev;
|
||||||
int mouserate = MOUSE_DEFAULTSAMPLERATE;
|
int mouserate = MOUSE_DEFAULTSAMPLERATE;
|
||||||
|
|
||||||
// Cvar_RegisterVariable(&mouse_button_commands[0]);
|
|
||||||
mouse_button_commands[0] = Cvar_Get ("mouse1","+attack",0,"None");
|
mouse_button_commands[0] = Cvar_Get ("mouse1","+attack",0,"None");
|
||||||
// Cvar_RegisterVariable(&mouse_button_commands[1]);
|
|
||||||
mouse_button_commands[1] = Cvar_Get ("mouse2","+strafe",0,"None");
|
mouse_button_commands[1] = Cvar_Get ("mouse2","+strafe",0,"None");
|
||||||
// Cvar_RegisterVariable(&mouse_button_commands[2]);
|
|
||||||
mouse_button_commands[2] = Cvar_Get ("mouse2","+forward",0,"None");
|
mouse_button_commands[2] = Cvar_Get ("mouse2","+forward",0,"None");
|
||||||
// Cvar_RegisterVariable(&m_filter);
|
|
||||||
m_filter = Cvar_Get ("m_filter","0",0,"None");
|
m_filter = Cvar_Get ("m_filter","0",0,"None");
|
||||||
Cmd_AddCommand("force_centerview", Force_CenterView_f);
|
Cmd_AddCommand("force_centerview", Force_CenterView_f);
|
||||||
|
|
||||||
|
|
|
@ -1,35 +1,43 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 1996-1997 Id Software, Inc.
|
in_win.c
|
||||||
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
|
||||||
Please see the file "AUTHORS" for a list of contributors
|
win32 input code
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
Copyright (C) 1996-1997 Id Software, Inc.
|
||||||
modify it under the terms of the GNU General Public License
|
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
||||||
as published by the Free Software Foundation; either version 2
|
Please see the file "AUTHORS" for a list of contributors
|
||||||
of the License, or (at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is free software; you can redistribute it and/or
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
modify it under the terms of the GNU General Public License
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
See the GNU General Public License for more details.
|
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.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
See the GNU General Public License for more details.
|
||||||
along with this program; if not, write to the Free Software
|
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to:
|
||||||
|
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
59 Temple Place - Suite 330
|
||||||
|
Boston, MA 02111-1307, USA
|
||||||
|
|
||||||
|
$Id$
|
||||||
*/
|
*/
|
||||||
// in_win.c -- windows 95 mouse and joystick code
|
|
||||||
// 02/21/97 JCB Added extended DirectInput code to support external controllers.
|
// 02/21/97 JCB Added extended DirectInput code to support external controllers.
|
||||||
|
|
||||||
#include "quakedef.h"
|
#include <quakedef.h>
|
||||||
#include "winquake.h"
|
#include <winquake.h>
|
||||||
#ifdef HAVE_INITGUID_H
|
#ifdef HAVE_INITGUID_H
|
||||||
# include <initguid.h>
|
# include <initguid.h>
|
||||||
#endif
|
#endif
|
||||||
#include <dinput.h>
|
#include <dinput.h>
|
||||||
//#include "dosisms.h"
|
//#include <dosisms.h>
|
||||||
#include "client.h"
|
#include <client.h>
|
||||||
#include <cmd.h>
|
#include <cmd.h>
|
||||||
#include <console.h>
|
#include <console.h>
|
||||||
#include <qargs.h>
|
#include <qargs.h>
|
||||||
|
|
|
@ -1,25 +1,32 @@
|
||||||
/*
|
/*
|
||||||
in_x11.c - general x11 input driver
|
in_x11.c
|
||||||
Copyright (C) 1996-1997 Id Software, Inc.
|
|
||||||
Copyright (C) 1999-2000 contributors of the QuakeForge project
|
|
||||||
Copyright (C) 2000 Marcus Sundberg [mackan@stacken.kth.se]
|
|
||||||
Please see the file "AUTHORS" for a list of contributors
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
general x11 input driver
|
||||||
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,
|
Copyright (C) 1996-1997 Id Software, Inc.
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
Copyright (C) 2000 Marcus Sundberg [mackan@stacken.kth.se]
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
||||||
|
Please see the file "AUTHORS" for a list of contributors
|
||||||
|
|
||||||
See the GNU General Public License for more details.
|
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.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
This program is distributed in the hope that it will be useful,
|
||||||
along with this program; if not, write to the Free Software
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
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:
|
||||||
|
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
59 Temple Place - Suite 330
|
||||||
|
Boston, MA 02111-1307, USA
|
||||||
|
|
||||||
|
$Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _BSD
|
#define _BSD
|
||||||
|
@ -59,13 +66,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//cvar_t _windowed_mouse = {"_windowed_mouse","0", CVAR_ARCHIVE};
|
|
||||||
cvar_t *_windowed_mouse;
|
cvar_t *_windowed_mouse;
|
||||||
//cvar_t m_filter = {"m_filter","0", CVAR_ARCHIVE};
|
|
||||||
cvar_t *m_filter;
|
cvar_t *m_filter;
|
||||||
#ifdef HAS_DGA
|
#ifdef HAS_DGA
|
||||||
qboolean dgamouse = 0;
|
qboolean dgamouse = 0;
|
||||||
//static cvar_t vid_dga_mouseaccel = {"vid_dga_mouseaccel", "1", CVAR_ARCHIVE};
|
|
||||||
cvar_t *vid_dga_mouseaccel;
|
cvar_t *vid_dga_mouseaccel;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -1,24 +1,31 @@
|
||||||
/*
|
/*
|
||||||
input.h
|
input.h
|
||||||
Copyright (C) 1996-1997 Id Software, Inc.
|
|
||||||
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
|
||||||
Please see the file "AUTHORS" for a list of contributors
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
(description)
|
||||||
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,
|
Copyright (C) 1996-1997 Id Software, Inc.
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
Please see the file "AUTHORS" for a list of contributors
|
||||||
|
|
||||||
See the GNU General Public License for more details.
|
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.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
This program is distributed in the hope that it will be useful,
|
||||||
along with this program; if not, write to the Free Software
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
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:
|
||||||
|
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
59 Temple Place - Suite 330
|
||||||
|
Boston, MA 02111-1307, USA
|
||||||
|
|
||||||
|
$Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __INPUT_H__
|
#ifndef __INPUT_H__
|
||||||
|
|
Loading…
Reference in a new issue