2019-09-18 22:27:46 +00:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
/*
|
|
|
|
Copyright (C) 2010 EDuke32 developers and contributors
|
|
|
|
|
|
|
|
This file is part of EDuke32.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef config_public_h_
|
|
|
|
#define config_public_h_
|
|
|
|
|
2019-06-08 11:38:08 +00:00
|
|
|
#include "function.h"
|
|
|
|
|
2019-09-21 22:10:48 +00:00
|
|
|
BEGIN_RR_NS
|
|
|
|
|
2019-09-18 22:27:46 +00:00
|
|
|
#define SETUPNAMEPARM "SETUPFILE"
|
|
|
|
|
|
|
|
int32_t CONFIG_ReadSetup( void );
|
|
|
|
void CONFIG_GetSetupFilename( void );
|
|
|
|
void CONFIG_WriteSetup(uint32_t flags);
|
|
|
|
void CONFIG_SetupMouse( void );
|
|
|
|
void CONFIG_SetupJoystick( void );
|
2019-06-08 11:38:08 +00:00
|
|
|
void CONFIG_SetDefaultKeys(const char (*keyptr)[MAXGAMEFUNCLEN], bool lazy=false);
|
2019-09-18 22:27:46 +00:00
|
|
|
|
|
|
|
int32_t CONFIG_GetMapBestTime(char const * mapname, uint8_t const * mapmd4);
|
|
|
|
int32_t CONFIG_SetMapBestTime(uint8_t const * mapmd4, int32_t tm);
|
|
|
|
|
|
|
|
void CONFIG_MapKey(int32_t which, kb_scancode key1, kb_scancode oldkey1, kb_scancode key2, kb_scancode oldkey2);
|
|
|
|
|
|
|
|
int32_t CONFIG_FunctionNameToNum(const char *func);
|
|
|
|
char *CONFIG_FunctionNumToName(int32_t func);
|
|
|
|
int32_t CONFIG_AnalogNameToNum(const char *func);
|
|
|
|
const char *CONFIG_AnalogNumToName(int32_t func);
|
|
|
|
void CONFIG_SetDefaults(void);
|
|
|
|
|
2019-09-21 22:10:48 +00:00
|
|
|
END_RR_NS
|
|
|
|
|
2019-09-18 22:27:46 +00:00
|
|
|
#endif
|