2012-06-03 16:11:22 +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
|
2014-07-20 08:55:56 +00:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2012-06-03 16:11:22 +00:00
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
2014-11-22 12:32:56 +00:00
|
|
|
#ifndef input_h_
|
|
|
|
#define input_h_
|
2012-06-03 16:11:22 +00:00
|
|
|
|
2019-10-28 17:32:05 +00:00
|
|
|
|
|
|
|
enum {
|
|
|
|
TYPEBUFSIZE = 141
|
|
|
|
};
|
|
|
|
extern char typebuf[TYPEBUFSIZE];
|
2019-09-21 20:53:00 +00:00
|
|
|
|
|
|
|
|
2012-06-03 16:11:22 +00:00
|
|
|
extern int32_t I_CheckAllInput(void);
|
|
|
|
extern void I_ClearAllInput(void);
|
|
|
|
|
|
|
|
// Advance = Selecting a menu option || Saying "Yes" || Going forward in Help/Credits
|
|
|
|
// Return = Closing a sub-menu || Saying "No"
|
2019-08-07 19:12:07 +00:00
|
|
|
// General = Advance + Return = Skipping screens
|
2012-06-03 16:11:22 +00:00
|
|
|
// Escape = Opening the menu in-game (should not be any gamefuncs)
|
|
|
|
|
|
|
|
extern int32_t I_AdvanceTrigger(void);
|
2014-06-16 23:15:49 +00:00
|
|
|
extern void I_AdvanceTriggerClear(void);
|
2012-06-03 16:11:22 +00:00
|
|
|
extern int32_t I_ReturnTrigger(void);
|
2014-06-16 23:15:49 +00:00
|
|
|
extern void I_ReturnTriggerClear(void);
|
2019-08-07 19:12:07 +00:00
|
|
|
extern int32_t I_GeneralTrigger(void);
|
|
|
|
extern void I_GeneralTriggerClear(void);
|
2012-06-03 16:11:22 +00:00
|
|
|
extern int32_t I_EscapeTrigger(void);
|
2014-06-16 23:15:49 +00:00
|
|
|
extern void I_EscapeTriggerClear(void);
|
2012-06-03 16:11:22 +00:00
|
|
|
|
2014-06-16 23:15:49 +00:00
|
|
|
extern int32_t I_MenuUp(void);
|
|
|
|
extern void I_MenuUpClear(void);
|
|
|
|
extern int32_t I_MenuDown(void);
|
|
|
|
extern void I_MenuDownClear(void);
|
|
|
|
extern int32_t I_MenuLeft(void);
|
|
|
|
extern void I_MenuLeftClear(void);
|
|
|
|
extern int32_t I_MenuRight(void);
|
|
|
|
extern void I_MenuRightClear(void);
|
2012-06-03 16:11:22 +00:00
|
|
|
|
2014-05-31 12:26:41 +00:00
|
|
|
|
|
|
|
enum EnterTextFlags_t {
|
|
|
|
INPUT_NUMERIC = 0x00000001,
|
|
|
|
};
|
|
|
|
|
|
|
|
extern int32_t I_EnterText(char *t, int32_t maxlength, int32_t flags);
|
2012-06-03 16:11:22 +00:00
|
|
|
|
|
|
|
#endif
|