src/mess/inputx.c
| r1379 | r1380 | |
| 20 | 20 | #define NUM_SIMUL_KEYS (UCHAR_SHIFT_END - UCHAR_SHIFT_BEGIN + 1) |
| 21 | 21 | #define LOG_INPUTX 0 |
| 22 | 22 | #define DUMP_CODES 0 |
| 23 | #define SPACE_COUNT 3 |
| 23 | 24 | |
| 24 | 25 | typedef struct _mess_input_code mess_input_code; |
| 25 | 26 | struct _mess_input_code |
| r1379 | r1380 | |
| 946 | 947 | / sizeof(ipt->keyboard.chars[0])); i++) |
| 947 | 948 | { |
| 948 | 949 | 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)); |
| 950 | 951 | } |
| 951 | 952 | |
| 953 | /* trim extra spaces */ |
| 952 | 954 | rtrim(buf); |
| 953 | 955 | |
| 954 | | if (buf[0]) |
| 956 | /* specify the key name */ |
| 957 | if (buf[0] != '\0') |
| 955 | 958 | ipt->name = auto_strdup(buf); |
| 956 | 959 | else |
| 957 | 960 | ipt->name = "Unnamed Key"; |