2006-04-13 20:47:06 +00:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
/*
|
|
|
|
Copyright (C) 1996, 2003 - 3D Realms Entertainment
|
|
|
|
|
|
|
|
This file is part of Duke Nukem 3D version 1.5 - Atomic Edition
|
|
|
|
|
|
|
|
Duke Nukem 3D 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.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
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 the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
Original Source: 1996 - Todd Replogle
|
|
|
|
Prepared for public release: 03/21/2003 - Charlie Wiederhold, 3D Realms
|
|
|
|
Modifications for JonoF's port by Jonathon Fowler (jonof@edgenetwk.com)
|
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// _functio.h
|
|
|
|
|
|
|
|
// file created by makehead.exe
|
|
|
|
// these headers contain default key assignments, as well as
|
|
|
|
// default button assignments and game function names
|
|
|
|
// axis defaults are also included
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _function_private_
|
|
|
|
#define _function_private_
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2006-04-25 01:56:24 +00:00
|
|
|
char gamefunctions[NUMGAMEFUNCTIONS][MAXGAMEFUNCLEN] =
|
2006-04-13 20:47:06 +00:00
|
|
|
{
|
|
|
|
"Move_Forward",
|
|
|
|
"Move_Backward",
|
|
|
|
"Turn_Left",
|
|
|
|
"Turn_Right",
|
|
|
|
"Strafe",
|
|
|
|
"Fire",
|
|
|
|
"Open",
|
|
|
|
"Run",
|
|
|
|
"AutoRun",
|
|
|
|
"Jump",
|
|
|
|
"Crouch",
|
|
|
|
"Look_Up",
|
|
|
|
"Look_Down",
|
|
|
|
"Look_Left",
|
|
|
|
"Look_Right",
|
|
|
|
"Strafe_Left",
|
|
|
|
"Strafe_Right",
|
|
|
|
"Aim_Up",
|
|
|
|
"Aim_Down",
|
|
|
|
"Weapon_1",
|
|
|
|
"Weapon_2",
|
|
|
|
"Weapon_3",
|
|
|
|
"Weapon_4",
|
|
|
|
"Weapon_5",
|
|
|
|
"Weapon_6",
|
|
|
|
"Weapon_7",
|
|
|
|
"Weapon_8",
|
|
|
|
"Weapon_9",
|
|
|
|
"Weapon_10",
|
|
|
|
"Inventory",
|
|
|
|
"Inventory_Left",
|
|
|
|
"Inventory_Right",
|
|
|
|
"Holo_Duke",
|
|
|
|
"Jetpack",
|
|
|
|
"NightVision",
|
|
|
|
"MedKit",
|
|
|
|
"TurnAround",
|
|
|
|
"SendMessage",
|
|
|
|
"Map",
|
|
|
|
"Shrink_Screen",
|
|
|
|
"Enlarge_Screen",
|
|
|
|
"Center_View",
|
|
|
|
"Holster_Weapon",
|
|
|
|
"Show_Opponents_Weapon",
|
|
|
|
"Map_Follow_Mode",
|
|
|
|
"See_Coop_View",
|
|
|
|
"Mouse_Aiming",
|
|
|
|
"Toggle_Crosshair",
|
|
|
|
"Steroids",
|
|
|
|
"Quick_Kick",
|
|
|
|
"Next_Weapon",
|
|
|
|
"Previous_Weapon",
|
|
|
|
"Show_Console"
|
|
|
|
};
|
2006-07-24 02:47:47 +00:00
|
|
|
|
|
|
|
char defaultgamefunctions[NUMGAMEFUNCTIONS][MAXGAMEFUNCLEN] =
|
|
|
|
{
|
|
|
|
"Move_Forward",
|
|
|
|
"Move_Backward",
|
|
|
|
"Turn_Left",
|
|
|
|
"Turn_Right",
|
|
|
|
"Strafe",
|
|
|
|
"Fire",
|
|
|
|
"Open",
|
|
|
|
"Run",
|
|
|
|
"AutoRun",
|
|
|
|
"Jump",
|
|
|
|
"Crouch",
|
|
|
|
"Look_Up",
|
|
|
|
"Look_Down",
|
|
|
|
"Look_Left",
|
|
|
|
"Look_Right",
|
|
|
|
"Strafe_Left",
|
|
|
|
"Strafe_Right",
|
|
|
|
"Aim_Up",
|
|
|
|
"Aim_Down",
|
|
|
|
"Weapon_1",
|
|
|
|
"Weapon_2",
|
|
|
|
"Weapon_3",
|
|
|
|
"Weapon_4",
|
|
|
|
"Weapon_5",
|
|
|
|
"Weapon_6",
|
|
|
|
"Weapon_7",
|
|
|
|
"Weapon_8",
|
|
|
|
"Weapon_9",
|
|
|
|
"Weapon_10",
|
|
|
|
"Inventory",
|
|
|
|
"Inventory_Left",
|
|
|
|
"Inventory_Right",
|
|
|
|
"Holo_Duke",
|
|
|
|
"Jetpack",
|
|
|
|
"NightVision",
|
|
|
|
"MedKit",
|
|
|
|
"TurnAround",
|
|
|
|
"SendMessage",
|
|
|
|
"Map",
|
|
|
|
"Shrink_Screen",
|
|
|
|
"Enlarge_Screen",
|
|
|
|
"Center_View",
|
|
|
|
"Holster_Weapon",
|
|
|
|
"Show_Opponents_Weapon",
|
|
|
|
"Map_Follow_Mode",
|
|
|
|
"See_Coop_View",
|
|
|
|
"Mouse_Aiming",
|
|
|
|
"Toggle_Crosshair",
|
|
|
|
"Steroids",
|
|
|
|
"Quick_Kick",
|
|
|
|
"Next_Weapon",
|
|
|
|
"Previous_Weapon",
|
|
|
|
"Show_Console"
|
|
|
|
};
|
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
#ifdef __SETUP__
|
|
|
|
|
|
|
|
#define NUMKEYENTRIES 53
|
|
|
|
|
2006-04-25 01:56:24 +00:00
|
|
|
char keydefaults[NUMGAMEFUNCTIONS*3][MAXGAMEFUNCLEN] =
|
2006-04-13 20:47:06 +00:00
|
|
|
{
|
2006-04-25 01:56:24 +00:00
|
|
|
"Move_Forward", "W", "Kpad8",
|
|
|
|
"Move_Backward", "S", "Kpad2",
|
2006-04-13 20:47:06 +00:00
|
|
|
"Turn_Left", "Left", "Kpad4",
|
|
|
|
"Turn_Right", "Right", "KPad6",
|
|
|
|
"Strafe", "LAlt", "RAlt",
|
2006-04-25 01:56:24 +00:00
|
|
|
"Fire", "", "RCtrl",
|
|
|
|
"Open", "E", "",
|
2006-04-13 20:47:06 +00:00
|
|
|
"Run", "LShift", "RShift",
|
|
|
|
"AutoRun", "CapLck", "",
|
2006-04-25 01:56:24 +00:00
|
|
|
"Jump", "Space", "/",
|
|
|
|
"Crouch", "LCtrl", "",
|
2006-04-13 20:47:06 +00:00
|
|
|
"Look_Up", "PgUp", "Kpad9",
|
|
|
|
"Look_Down", "PgDn", "Kpad3",
|
|
|
|
"Look_Left", "Insert", "Kpad0",
|
|
|
|
"Look_Right", "Delete", "Kpad.",
|
2006-04-25 01:56:24 +00:00
|
|
|
"Strafe_Left", "A", "",
|
|
|
|
"Strafe_Right", "D", "",
|
2006-04-13 20:47:06 +00:00
|
|
|
"Aim_Up", "Home", "KPad7",
|
|
|
|
"Aim_Down", "End", "Kpad1",
|
|
|
|
"Weapon_1", "1", "",
|
|
|
|
"Weapon_2", "2", "",
|
|
|
|
"Weapon_3", "3", "",
|
|
|
|
"Weapon_4", "4", "",
|
|
|
|
"Weapon_5", "5", "",
|
|
|
|
"Weapon_6", "6", "",
|
|
|
|
"Weapon_7", "7", "",
|
|
|
|
"Weapon_8", "8", "",
|
|
|
|
"Weapon_9", "9", "",
|
|
|
|
"Weapon_10", "0", "",
|
|
|
|
"Inventory", "Enter", "KpdEnt",
|
|
|
|
"Inventory_Left", "[", "",
|
|
|
|
"Inventory_Right", "]", "",
|
|
|
|
"Holo_Duke", "H", "",
|
|
|
|
"Jetpack", "J", "",
|
|
|
|
"NightVision", "N", "",
|
|
|
|
"MedKit", "M", "",
|
|
|
|
"TurnAround", "BakSpc", "",
|
|
|
|
"SendMessage", "T", "",
|
|
|
|
"Map", "Tab", "",
|
|
|
|
"Shrink_Screen", "-", "Kpad-",
|
|
|
|
"Enlarge_Screen", "=", "Kpad+",
|
|
|
|
"Center_View", "KPad5", "",
|
|
|
|
"Holster_Weapon", "ScrLck", "",
|
2006-04-25 01:56:24 +00:00
|
|
|
"Show_Opponents_Weapon", "Y", "",
|
2006-04-13 20:47:06 +00:00
|
|
|
"Map_Follow_Mode", "F", "",
|
|
|
|
"See_Coop_View", "K", "",
|
|
|
|
"Mouse_Aiming", "U", "",
|
|
|
|
"Toggle_Crosshair", "I", "",
|
|
|
|
"Steroids", "R", "",
|
2006-04-25 01:56:24 +00:00
|
|
|
"Quick_Kick", "Q", "",
|
2006-04-13 20:47:06 +00:00
|
|
|
"Next_Weapon", "'", "",
|
|
|
|
"Previous_Weapon", ";", "",
|
2006-04-25 01:56:24 +00:00
|
|
|
"Show_Console", "`", ""
|
2006-04-13 20:47:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static char * mousedefaults[] =
|
|
|
|
{
|
|
|
|
"Fire",
|
2006-04-25 22:50:57 +00:00
|
|
|
"MedKit",
|
|
|
|
"Jetpack",
|
2006-04-13 20:47:06 +00:00
|
|
|
"",
|
2006-04-25 22:50:57 +00:00
|
|
|
"Next_Weapon",
|
|
|
|
"Previous_Weapon"
|
2006-04-13 20:47:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static char * mouseclickeddefaults[] =
|
|
|
|
{
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
2006-04-25 22:50:57 +00:00
|
|
|
""
|
2006-04-13 20:47:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static char * joystickdefaults[] =
|
|
|
|
{
|
|
|
|
"Fire",
|
|
|
|
"Strafe",
|
|
|
|
"Run",
|
|
|
|
"Open",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"Aim_Down",
|
|
|
|
"Look_Right",
|
|
|
|
"Aim_Up",
|
|
|
|
"Look_Left",
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static char * joystickclickeddefaults[] =
|
|
|
|
{
|
|
|
|
"",
|
|
|
|
"Inventory",
|
|
|
|
"Jump",
|
|
|
|
"Crouch",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static char * mouseanalogdefaults[] =
|
|
|
|
{
|
|
|
|
"analog_turning",
|
|
|
|
"analog_moving",
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static char * mousedigitaldefaults[] =
|
|
|
|
{
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static char * joystickanalogdefaults[] =
|
|
|
|
{
|
|
|
|
"analog_turning",
|
|
|
|
"analog_moving",
|
|
|
|
"analog_strafing",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static char * joystickdigitaldefaults[] =
|
|
|
|
{
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"Run",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
#endif
|