src/osd/sdl/input.c
| r7351 | r7352 | |
| 1584 | 1584 | { |
| 1585 | 1585 | int mameid_code ,ui_code; |
| 1586 | 1586 | input_type_desc *typedesc; |
| 1587 | const char* uimode; |
| 1587 | 1588 | |
| 1588 | 1589 | // loop over the defaults |
| 1589 | 1590 | for (typedesc = typelist; typedesc != NULL; typedesc = typedesc->next) |
| r7351 | r7352 | |
| 1591 | 1592 | switch (typedesc->type) |
| 1592 | 1593 | { |
| 1593 | 1594 | // configurable UI mode switch |
| 1594 | | case IPT_UI_TOGGLE_UI: |
| 1595 | | mameid_code = lookup_mame_code((const char *)options_get_string(mame_options(), SDLOPTION_UIMODEKEY)); |
| 1595 | case IPT_UI_TOGGLE_UI: |
| 1596 | uimode = (const char *)options_get_string(mame_options(), SDLOPTION_UIMODEKEY); |
| 1597 | if(!strcmp(uimode,"auto")) { |
| 1598 | #if defined(__APPLE__) && defined(__MACH__) |
| 1599 | mameid_code = lookup_mame_code("ITEM_ID_INSERT"); |
| 1600 | #else |
| 1601 | mameid_code = lookup_mame_code("ITEM_ID_SCRLOCK"); |
| 1602 | #endif |
| 1603 | } else { |
| 1604 | mameid_code = lookup_mame_code(uimode); |
| 1605 | } |
| 1596 | 1606 | ui_code = INPUT_CODE(DEVICE_CLASS_KEYBOARD, 0, ITEM_CLASS_SWITCH, ITEM_MODIFIER_NONE, mameid_code); |
| 1597 | 1607 | input_seq_set_1(&typedesc->seq[SEQ_TYPE_STANDARD], ui_code); |
| 1598 | 1608 | break; |
src/emu/emuopts.c
| r7351 | r7352 | |
| 130 | 130 | { "joystick_deadzone;joy_deadzone;jdz", "0.3", 0, "center deadzone range for joystick where change is ignored (0.0 center, 1.0 end)" }, |
| 131 | 131 | { "joystick_saturation;joy_saturation;jsat", "0.85", 0, "end of axis saturation range for joystick where change is ignored (0.0 center, 1.0 end)" }, |
| 132 | 132 | { "natural;nat", "0", OPTION_BOOLEAN, "specifies whether to use a natural keyboard or not" }, |
| 133 | | #if defined(__APPLE__) && defined(__MACH__) |
| 134 | | { "uimodekey;umk", "ITEM_ID_INSERT", 0, "specifies the key used to toggle between full and partial UI mode" }, |
| 135 | | #else |
| 136 | | { "uimodekey;umk", "ITEM_ID_SCRLOCK", 0, "specifies the key used to toggle between full and partial UI mode" }, |
| 137 | | #endif |
| 133 | { "uimodekey;umk", "auto", 0, "specifies the key used to toggle between full and partial UI mode" }, |
| 138 | 134 | |
| 139 | 135 | |
| 140 | 136 | /* input autoenable options */ |