summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/inptport.c
diff options
context:
space:
mode:
author Fabio Priuli <etabeta78@users.noreply.github.com>2010-04-05 15:30:00 +0000
committer Fabio Priuli <etabeta78@users.noreply.github.com>2010-04-05 15:30:00 +0000
commit8e22365b5caa533998a3c362b4ae7bedb6ccb75c (patch)
tree459a6ff84b5b5ece076d5b4e69e601350c8d6248 /src/emu/inptport.c
parent63b784570eef9e4193ac79aa8b3f61476ecb4437 (diff)
Added a new input type IPT_KEYPAD for MESS, to distinguish between fully featured keyboards and keypad controllers [Fabio Priuli]
Diffstat (limited to 'src/emu/inptport.c')
-rw-r--r--src/emu/inptport.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/inptport.c b/src/emu/inptport.c
index 54710267e8e..096e23bca2f 100644
--- a/src/emu/inptport.c
+++ b/src/emu/inptport.c
@@ -2079,7 +2079,7 @@ static void init_port_state(running_machine *machine)
}
/* Name keyboard key names */
- if ((field->type == IPT_KEYBOARD) && (field->name == NULL))
+ if ((field->type == IPT_KEYBOARD || field->type == IPT_KEYPAD) && (field->name == NULL))
{
astring *name = get_keyboard_key_name(field);
if (name != NULL)
@@ -5359,6 +5359,7 @@ int input_classify_port(const input_field_config *field)
result = INPUT_CLASS_CONTROLLER;
break;
+ case IPT_KEYPAD:
case IPT_KEYBOARD:
result = INPUT_CLASS_KEYBOARD;
break;