src/emu/uimenu.c
| r3202 | r3203 | |
| 1431 | 1431 | int has_configs = FALSE; |
| 1432 | 1432 | int has_analog = FALSE; |
| 1433 | 1433 | int has_dips = FALSE; |
| 1434 | #ifdef MESS |
| 1435 | int has_keyboard = FALSE; |
| 1436 | #endif |
| 1434 | 1437 | |
| 1435 | 1438 | /* scan the input port array to see what options we need to enable */ |
| 1436 | 1439 | for (port = machine->portconfig; port != NULL; port = port->next) |
| r3202 | r3203 | |
| 1444 | 1447 | has_categories = TRUE; |
| 1445 | 1448 | if (input_type_is_analog(field->type)) |
| 1446 | 1449 | has_analog = TRUE; |
| 1450 | #ifdef MESS |
| 1451 | if (field->type == IPT_KEYBOARD) |
| 1452 | has_keyboard = TRUE; |
| 1453 | #endif |
| 1447 | 1454 | } |
| 1448 | 1455 | |
| 1449 | 1456 | /* add input menu items */ |
| r3202 | r3203 | |
| 1482 | 1489 | #endif /* HAS_WAVE */ |
| 1483 | 1490 | |
| 1484 | 1491 | /* add keyboard mode menu */ |
| 1485 | | ui_menu_item_append(menu, "Keyboard Mode", NULL, 0, ui_menu_keyboard_mode); |
| 1492 | if( has_keyboard && inputx_can_post(machine) ) |
| 1493 | ui_menu_item_append(menu, "Keyboard Mode", NULL, 0, ui_menu_keyboard_mode); |
| 1486 | 1494 | #endif /* MESS */ |
| 1487 | 1495 | |
| 1488 | 1496 | /* add sliders menu */ |