2006-04-13 20:47:06 +00:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
/*
|
2010-05-25 10:56:00 +00:00
|
|
|
Copyright (C) 2010 EDuke32 developers and contributors
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2010-05-25 10:56:00 +00:00
|
|
|
This file is part of EDuke32.
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2007-02-08 04:19:39 +00:00
|
|
|
EDuke32 is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License version 2
|
|
|
|
as published by the Free Software Foundation.
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
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
|
2014-07-20 08:55:56 +00:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2006-04-13 20:47:06 +00:00
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// _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
|
|
|
|
|
2014-12-18 18:16:16 +00:00
|
|
|
#include "_control.h"
|
|
|
|
#include "control.h"
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2014-11-22 12:32:56 +00:00
|
|
|
#ifndef function_private_h_
|
|
|
|
#define function_private_h_
|
2014-11-26 04:39:23 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
2006-04-13 20:47:06 +00:00
|
|
|
#endif
|
2012-11-25 13:18:41 +00:00
|
|
|
// KEEPINSYNC lunatic/con_lang.lua
|
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",
|
2018-01-31 05:23:43 +00:00
|
|
|
"AutoRun",
|
2006-04-13 20:47:06 +00:00
|
|
|
"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",
|
2006-07-24 02:47:47 +00:00
|
|
|
"Weapon_10",
|
2018-01-31 05:23:43 +00:00
|
|
|
"Inventory",
|
2006-07-24 02:47:47 +00:00
|
|
|
"Inventory_Left",
|
|
|
|
"Inventory_Right",
|
2017-06-17 11:42:15 +00:00
|
|
|
#ifndef EDUKE32_STANDALONE
|
2018-01-31 05:23:43 +00:00
|
|
|
"Holo_Duke",
|
2006-07-24 02:47:47 +00:00
|
|
|
"Jetpack",
|
2018-01-31 05:23:43 +00:00
|
|
|
"NightVision",
|
|
|
|
"MedKit",
|
2017-06-17 11:42:15 +00:00
|
|
|
#else
|
2018-01-31 05:23:43 +00:00
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
2017-06-17 11:42:15 +00:00
|
|
|
#endif
|
2018-01-31 05:23:43 +00:00
|
|
|
"TurnAround",
|
|
|
|
"SendMessage",
|
2006-07-24 02:47:47 +00:00
|
|
|
"Map",
|
|
|
|
"Shrink_Screen",
|
|
|
|
"Enlarge_Screen",
|
|
|
|
"Center_View",
|
|
|
|
"Holster_Weapon",
|
2018-01-31 05:23:43 +00:00
|
|
|
"Show_Opponents_Weapon",
|
2006-07-24 02:47:47 +00:00
|
|
|
"Map_Follow_Mode",
|
2018-01-31 05:23:43 +00:00
|
|
|
"See_Coop_View",
|
2006-07-24 02:47:47 +00:00
|
|
|
"Mouse_Aiming",
|
|
|
|
"Toggle_Crosshair",
|
2017-06-17 11:42:15 +00:00
|
|
|
#ifndef EDUKE32_STANDALONE
|
2006-07-24 02:47:47 +00:00
|
|
|
"Steroids",
|
|
|
|
"Quick_Kick",
|
2017-06-17 11:42:15 +00:00
|
|
|
#else
|
2018-01-31 05:23:43 +00:00
|
|
|
"",
|
|
|
|
"",
|
2017-06-17 11:42:15 +00:00
|
|
|
#endif
|
2006-07-24 02:47:47 +00:00
|
|
|
"Next_Weapon",
|
|
|
|
"Previous_Weapon",
|
2008-11-20 14:06:36 +00:00
|
|
|
"Show_Console",
|
2017-06-17 11:42:15 +00:00
|
|
|
#ifndef EDUKE32_STANDALONE
|
2018-01-31 05:23:43 +00:00
|
|
|
"Show_DukeMatch_Scores",
|
2017-06-17 11:42:15 +00:00
|
|
|
#else
|
2018-01-31 05:23:43 +00:00
|
|
|
"Show_Multiplayer_Scores",
|
2017-06-17 11:42:15 +00:00
|
|
|
#endif
|
2010-06-22 21:50:01 +00:00
|
|
|
"Dpad_Select",
|
2018-01-26 04:35:23 +00:00
|
|
|
"Dpad_Aiming",
|
|
|
|
"Alternate_Weapon",
|
2006-07-24 02:47:47 +00:00
|
|
|
};
|
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
#ifdef __SETUP__
|
|
|
|
|
2018-01-26 04:35:23 +00:00
|
|
|
#define NUMKEYENTRIES 57
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2017-06-17 11:41:54 +00:00
|
|
|
const char keydefaults[NUMGAMEFUNCTIONS*2][MAXGAMEFUNCLEN] =
|
2006-04-13 20:47:06 +00:00
|
|
|
{
|
2017-06-17 11:41:54 +00:00
|
|
|
"W", "Kpad8",
|
|
|
|
"S", "Kpad2",
|
|
|
|
"Left", "Kpad4",
|
|
|
|
"Right", "KPad6",
|
|
|
|
"LAlt", "RAlt",
|
|
|
|
"", "RCtrl",
|
|
|
|
"E", "",
|
|
|
|
"LShift", "RShift",
|
|
|
|
"CapLck", "",
|
|
|
|
"Space", "/",
|
|
|
|
"LCtrl", "",
|
|
|
|
"PgUp", "Kpad9",
|
|
|
|
"PgDn", "Kpad3",
|
|
|
|
"Insert", "Kpad0",
|
|
|
|
"Delete", "Kpad.",
|
|
|
|
"A", "",
|
|
|
|
"D", "",
|
|
|
|
"Home", "KPad7",
|
|
|
|
"End", "Kpad1",
|
|
|
|
"1", "",
|
|
|
|
"2", "",
|
|
|
|
"3", "",
|
|
|
|
"4", "",
|
|
|
|
"5", "",
|
|
|
|
"6", "",
|
|
|
|
"7", "",
|
|
|
|
"8", "",
|
|
|
|
"9", "",
|
|
|
|
"0", "",
|
|
|
|
"Enter", "KpdEnt",
|
|
|
|
"[", "",
|
|
|
|
"]", "",
|
|
|
|
"H", "",
|
|
|
|
"J", "",
|
|
|
|
"N", "",
|
|
|
|
"M", "",
|
|
|
|
"BakSpc", "",
|
|
|
|
"T", "",
|
|
|
|
"Tab", "",
|
|
|
|
"-", "Kpad-",
|
|
|
|
"=", "Kpad+",
|
|
|
|
"KPad5", "",
|
|
|
|
"ScrLck", "",
|
|
|
|
"Y", "",
|
|
|
|
"F", "",
|
|
|
|
"K", "",
|
|
|
|
"U", "",
|
|
|
|
"I", "",
|
|
|
|
"R", "",
|
|
|
|
"Q", "",
|
|
|
|
"'", "",
|
|
|
|
";", "",
|
|
|
|
"`", "",
|
|
|
|
"", "",
|
|
|
|
"", "",
|
|
|
|
"", "",
|
2018-01-26 04:35:23 +00:00
|
|
|
"", "",
|
2006-04-13 20:47:06 +00:00
|
|
|
};
|
|
|
|
|
2017-06-17 11:41:54 +00:00
|
|
|
const char oldkeydefaults[NUMGAMEFUNCTIONS*2][MAXGAMEFUNCLEN] =
|
2007-02-14 00:22:12 +00:00
|
|
|
{
|
2017-06-17 11:41:54 +00:00
|
|
|
"Up", "Kpad8",
|
|
|
|
"Down", "Kpad2",
|
|
|
|
"Left", "Kpad4",
|
|
|
|
"Right", "KPad6",
|
|
|
|
"LAlt", "RAlt",
|
|
|
|
"LCtrl", "RCtrl",
|
|
|
|
"Space", "",
|
|
|
|
"LShift", "RShift",
|
|
|
|
"CapLck", "",
|
|
|
|
"A", "/",
|
|
|
|
"Z", "",
|
|
|
|
"PgUp", "Kpad9",
|
|
|
|
"PgDn", "Kpad3",
|
|
|
|
"Insert", "Kpad0",
|
|
|
|
"Delete", "Kpad.",
|
|
|
|
",", "",
|
|
|
|
".", "",
|
|
|
|
"Home", "KPad7",
|
|
|
|
"End", "Kpad1",
|
|
|
|
"1", "",
|
|
|
|
"2", "",
|
|
|
|
"3", "",
|
|
|
|
"4", "",
|
|
|
|
"5", "",
|
|
|
|
"6", "",
|
|
|
|
"7", "",
|
|
|
|
"8", "",
|
|
|
|
"9", "",
|
|
|
|
"0", "",
|
|
|
|
"Enter", "KpdEnt",
|
|
|
|
"[", "",
|
|
|
|
"]", "",
|
|
|
|
"H", "",
|
|
|
|
"J", "",
|
|
|
|
"N", "",
|
|
|
|
"M", "",
|
|
|
|
"BakSpc", "",
|
|
|
|
"T", "",
|
|
|
|
"Tab", "",
|
|
|
|
"-", "Kpad-",
|
|
|
|
"=", "Kpad+",
|
|
|
|
"KPad5", "",
|
|
|
|
"ScrLck", "",
|
|
|
|
"W", "",
|
|
|
|
"F", "",
|
|
|
|
"K", "",
|
|
|
|
"U", "",
|
|
|
|
"I", "",
|
|
|
|
"R", "",
|
|
|
|
"`", "",
|
|
|
|
"'", "",
|
|
|
|
";", "",
|
|
|
|
"C", "",
|
|
|
|
"", "",
|
|
|
|
"", "",
|
|
|
|
"", "",
|
2018-01-26 04:35:23 +00:00
|
|
|
"", "",
|
2007-02-14 00:22:12 +00:00
|
|
|
};
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2014-12-18 18:16:16 +00:00
|
|
|
static const char * mousedefaults[MAXMOUSEBUTTONS] =
|
2006-04-13 20:47:06 +00:00
|
|
|
{
|
|
|
|
"Fire",
|
2006-04-25 22:50:57 +00:00
|
|
|
"MedKit",
|
|
|
|
"Jetpack",
|
2006-04-13 20:47:06 +00:00
|
|
|
"",
|
2007-02-13 09:50:58 +00:00
|
|
|
"Previous_Weapon",
|
2008-10-18 12:37:26 +00:00
|
|
|
"Next_Weapon",
|
2006-04-13 20:47:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-12-18 18:16:16 +00:00
|
|
|
static const char * mouseclickeddefaults[MAXMOUSEBUTTONS] =
|
2006-04-13 20:47:06 +00:00
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-12-18 18:16:16 +00:00
|
|
|
static const char * mouseanalogdefaults[MAXMOUSEAXES] =
|
2012-06-03 16:11:22 +00:00
|
|
|
{
|
|
|
|
"analog_turning",
|
|
|
|
"analog_moving",
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-12-18 18:16:16 +00:00
|
|
|
static const char * mousedigitaldefaults[MAXMOUSEDIGITAL] =
|
2012-06-03 16:11:22 +00:00
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
#if defined(GEKKO)
|
2014-12-18 18:16:16 +00:00
|
|
|
static const char * joystickdefaults[MAXJOYBUTTONSANDHATS] =
|
2012-06-03 16:11:22 +00:00
|
|
|
{
|
|
|
|
"Open", // A
|
|
|
|
"Fire", // B
|
|
|
|
"Run", // 1
|
|
|
|
"Map", // 2
|
|
|
|
"Previous_Weapon", // -
|
|
|
|
"Next_Weapon", // +
|
|
|
|
"", // Home
|
|
|
|
"Jump", // Z
|
|
|
|
"Crouch", // C
|
|
|
|
"Map", // X
|
|
|
|
"Run", // Y
|
|
|
|
"Jump", // L
|
2012-07-05 17:55:44 +00:00
|
|
|
"Quick_Kick", // R
|
2012-06-03 16:11:22 +00:00
|
|
|
"Crouch", // ZL
|
2012-07-05 17:55:44 +00:00
|
|
|
"Fire", // ZR
|
2012-06-03 16:11:22 +00:00
|
|
|
"Quick_Kick", // D-Pad Up
|
|
|
|
"Inventory_Right", // D-Pad Right
|
|
|
|
"Inventory", // D-Pad Down
|
|
|
|
"Inventory_Left", // D-Pad Left
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-12-18 18:16:16 +00:00
|
|
|
static const char * joystickclickeddefaults[MAXJOYBUTTONSANDHATS] =
|
2012-06-03 16:11:22 +00:00
|
|
|
{
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
2012-07-05 17:55:44 +00:00
|
|
|
"Inventory",
|
2012-06-03 16:11:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-12-18 18:16:16 +00:00
|
|
|
static const char * joystickanalogdefaults[MAXJOYAXES] =
|
2012-06-03 16:11:22 +00:00
|
|
|
{
|
|
|
|
"analog_strafing",
|
|
|
|
"analog_moving",
|
|
|
|
"analog_turning",
|
|
|
|
"analog_lookingupanddown",
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-12-18 18:16:16 +00:00
|
|
|
static const char * joystickdigitaldefaults[MAXJOYDIGITAL] =
|
2012-06-03 16:11:22 +00:00
|
|
|
{
|
|
|
|
};
|
|
|
|
#else
|
2014-12-18 18:16:16 +00:00
|
|
|
static const char * joystickdefaults[MAXJOYBUTTONSANDHATS] =
|
2006-04-13 20:47:06 +00:00
|
|
|
{
|
|
|
|
"Fire",
|
|
|
|
"Strafe",
|
|
|
|
"Run",
|
|
|
|
"Open",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"Aim_Down",
|
|
|
|
"Look_Right",
|
|
|
|
"Aim_Up",
|
|
|
|
"Look_Left",
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-12-18 18:16:16 +00:00
|
|
|
static const char * joystickclickeddefaults[MAXJOYBUTTONSANDHATS] =
|
2006-04-13 20:47:06 +00:00
|
|
|
{
|
|
|
|
"",
|
|
|
|
"Inventory",
|
|
|
|
"Jump",
|
|
|
|
"Crouch",
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-12-18 18:16:16 +00:00
|
|
|
static const char * joystickanalogdefaults[MAXJOYAXES] =
|
2006-04-13 20:47:06 +00:00
|
|
|
{
|
|
|
|
"analog_turning",
|
|
|
|
"analog_moving",
|
|
|
|
"analog_strafing",
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-12-18 18:16:16 +00:00
|
|
|
static const char * joystickdigitaldefaults[MAXJOYDIGITAL] =
|
2006-04-13 20:47:06 +00:00
|
|
|
{
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"Run",
|
|
|
|
};
|
|
|
|
#endif
|
2012-06-03 16:11:22 +00:00
|
|
|
|
|
|
|
#endif
|
2014-11-26 04:39:23 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2006-04-13 20:47:06 +00:00
|
|
|
#endif
|
|
|
|
#endif
|