Previous 15994 Revisions Next

r1380 Wednesday 5th December, 2007 at 03:13:28 UTC by Nathan Woods
Added spacing between natural keyboard key names
[docs]messnew.txt
[src/mess]inputx.c

src/mess/inputx.c
r1379r1380
2020#define NUM_SIMUL_KEYS   (UCHAR_SHIFT_END - UCHAR_SHIFT_BEGIN + 1)
2121#define LOG_INPUTX      0
2222#define DUMP_CODES      0
23#define SPACE_COUNT      3
2324
2425typedef struct _mess_input_code mess_input_code;
2526struct _mess_input_code
r1379r1380
946947            / sizeof(ipt->keyboard.chars[0])); i++)
947948         {
948949            ch = ipt->keyboard.chars[i];
949            pos += sprintf(&buf[pos], "%s ", inputx_key_name(ch));
950            pos += snprintf(&buf[pos], ARRAY_LENGTH(buf) - pos, "%-*s ", MAX(SPACE_COUNT - 1, 0), inputx_key_name(ch));
950951         }
951952
953         /* trim extra spaces */
952954         rtrim(buf);
953955
954         if (buf[0])
956         /* specify the key name */
957         if (buf[0] != '\0')
955958            ipt->name = auto_strdup(buf);
956959         else
957960            ipt->name = "Unnamed Key";
docs/messnew.txt
r1379r1380
3030- The core is based on MAME 0.121u2.  This incorporates all features of the
3131  update to this core.  [MAME team]
3232
33- Changed spacing between natural keyboard key names.  [Nate Woods]
3334
3435
36
35370.121
3638
3739New System Drivers Supported (in no particular order):

Previous 15994 Revisions Next


© 1998-2018 The MESS Team