mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2025-02-18 23:09:45 +00:00
keys: make Key_KeynumToString return value const
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
7173e0191a
commit
0d3ecc861f
@ -1211,7 +1211,7 @@ M_Keys_Draw(void)
|
||||
{
|
||||
int i;
|
||||
int keys[2];
|
||||
char *name;
|
||||
const char *name;
|
||||
int x, y;
|
||||
qpic_t *p;
|
||||
|
||||
|
@ -623,7 +623,7 @@ M_Keys_Draw(void)
|
||||
{
|
||||
int i;
|
||||
int keys[2];
|
||||
char *name;
|
||||
const char *name;
|
||||
int x, y;
|
||||
qpic_t *p;
|
||||
|
||||
|
@ -65,7 +65,7 @@ int key_repeats[K_LAST]; // if > 1, it is autorepeating
|
||||
qboolean keydown[K_LAST];
|
||||
|
||||
typedef struct {
|
||||
char *name;
|
||||
const char *name;
|
||||
int keynum;
|
||||
} keyname_t;
|
||||
|
||||
@ -571,7 +571,7 @@ given keynum.
|
||||
FIXME: handle quote special (general escape sequence?)
|
||||
===================
|
||||
*/
|
||||
char *
|
||||
const char *
|
||||
Key_KeynumToString(int keynum)
|
||||
{
|
||||
keyname_t *kn;
|
||||
|
@ -282,7 +282,7 @@ void Key_SetBinding(knum_t keynum, char *binding);
|
||||
void Key_ClearStates(void);
|
||||
void Key_ClearTyping(void);
|
||||
|
||||
char *Key_KeynumToString(int keynum);
|
||||
const char *Key_KeynumToString(int keynum);
|
||||
|
||||
#define MAXCMDLINE 256
|
||||
extern char key_lines[32][MAXCMDLINE];
|
||||
|
Loading…
x
Reference in New Issue
Block a user