src/emu/inptport.c
| r2535 | r2536 | |
| 980 | 980 | INPUT_PORT_DIGITAL_DEF( 0, IPG_UI, UI_ROTATE, "UI Rotate", SEQ_DEF_1(KEYCODE_R) ) |
| 981 | 981 | INPUT_PORT_DIGITAL_DEF( 0, IPG_UI, UI_SHOW_PROFILER, "Show Profiler", SEQ_DEF_2(KEYCODE_F11, KEYCODE_LSHIFT) ) |
| 982 | 982 | #ifdef MESS |
| 983 | | INPUT_PORT_DIGITAL_DEF( 0, IPG_UI, UI_TOGGLE_UI, "UI Toggle", SEQ_DEF_1(KEYCODE_SCRLOCK) ) |
| 984 | | #endif |
| 983 | INPUT_PORT_DIGITAL_DEF( 0, IPG_UI, UI_TOGGLE_UI, "UI Toggle", SEQ_DEF_3(KEYCODE_SCRLOCK, SEQCODE_NOT, KEYCODE_LSHIFT) ) |
| 984 | INPUT_PORT_DIGITAL_DEF( 0, IPG_UI, UI_PASTE, "UI Paste Text", SEQ_DEF_2(KEYCODE_SCRLOCK, KEYCODE_LSHIFT) ) |
| 985 | #endif /* MESS */ |
| 985 | 986 | INPUT_PORT_DIGITAL_DEF( 0, IPG_UI, UI_TOGGLE_DEBUG, "Toggle Debugger", SEQ_DEF_1(KEYCODE_F5) ) |
| 986 | 987 | INPUT_PORT_DIGITAL_DEF( 0, IPG_UI, UI_SAVE_STATE, "Save State", SEQ_DEF_2(KEYCODE_F7, KEYCODE_LSHIFT) ) |
| 987 | 988 | INPUT_PORT_DIGITAL_DEF( 0, IPG_UI, UI_LOAD_STATE, "Load State", SEQ_DEF_3(KEYCODE_F7, SEQCODE_NOT, KEYCODE_LSHIFT) ) |
src/mess/tools/messtest/tststubs.c
| r2535 | r2536 | |
| 10 | 10 | #include "debug/debugcpu.h" |
| 11 | 11 | #endif /* ENABLE_DEBUGGER */ |
| 12 | 12 | |
| 13 | | #ifdef UNUSED_FUNCTION |
| 14 | | int osd_create_display(const osd_create_params *params, UINT32 *rgb_components) |
| 15 | | { |
| 16 | | rgb_components[0] = 0xff0000; |
| 17 | | rgb_components[1] = 0x00ff00; |
| 18 | | rgb_components[2] = 0x0000ff; |
| 19 | | return 0; |
| 20 | | } |
| 21 | | |
| 22 | | void osd_close_display(void) |
| 23 | | { |
| 24 | | } |
| 25 | | |
| 26 | | int osd_skip_this_frame(void) |
| 27 | | { |
| 28 | | return 0; |
| 29 | | } |
| 30 | | |
| 31 | | bitmap_t *osd_override_snapshot(bitmap_t *bitmap, rectangle *bounds) |
| 32 | | { |
| 33 | | return NULL; |
| 34 | | } |
| 35 | | #endif |
| 36 | | |
| 37 | 13 | void osd_set_mastervolume(int attenuation) |
| 38 | 14 | { |
| 39 | 15 | } |
| 40 | 16 | |
| 41 | | #ifdef UNUSED_FUNCTION |
| 42 | | int osd_get_mastervolume(void) |
| 43 | | { |
| 44 | | return 0; |
| 45 | | } |
| 46 | | |
| 47 | | void osd_sound_enable(int enable) |
| 48 | | { |
| 49 | | } |
| 50 | | |
| 51 | | int osd_is_code_pressed(int code) |
| 52 | | { |
| 53 | | return 0; |
| 54 | | } |
| 55 | | |
| 56 | | int osd_is_key_pressed(int keycode) |
| 57 | | { |
| 58 | | return 0; |
| 59 | | } |
| 60 | | |
| 61 | | int osd_readkey_unicode(int flush) |
| 62 | | { |
| 63 | | return 0; |
| 64 | | } |
| 65 | | |
| 66 | | int osd_is_joystick_axis_code(int joycode) |
| 67 | | { |
| 68 | | return 0; |
| 69 | | } |
| 70 | | |
| 71 | | int osd_joystick_needs_calibration(void) |
| 72 | | { |
| 73 | | return 0; |
| 74 | | } |
| 75 | | |
| 76 | | void osd_joystick_start_calibration(void) |
| 77 | | { |
| 78 | | } |
| 79 | | |
| 80 | | const char *osd_joystick_calibrate_next(void) |
| 81 | | { |
| 82 | | return NULL; |
| 83 | | } |
| 84 | | |
| 85 | | void osd_joystick_calibrate(void) |
| 86 | | { |
| 87 | | } |
| 88 | | |
| 89 | | void osd_joystick_end_calibration(void) |
| 90 | | { |
| 91 | | } |
| 92 | | |
| 93 | | void osd_lightgun_read(int player, int *deltax, int *deltay) |
| 94 | | { |
| 95 | | } |
| 96 | | |
| 97 | | void osd_trak_read(int player, int *deltax, int *deltay) |
| 98 | | { |
| 99 | | } |
| 100 | | #endif |
| 101 | | |
| 102 | 17 | void osd_customize_inputport_list(input_port_default_entry *defaults) |
| 103 | 18 | { |
| 104 | 19 | } |
| 105 | 20 | |
| 106 | | #ifdef UNUSED_FUNCTION |
| 107 | | void osd_logerror(const char *text) |
| 108 | | { |
| 109 | | } |
| 110 | | #endif |
| 111 | | |
| 112 | 21 | int osd_keyboard_disabled(void) |
| 113 | 22 | { |
| 114 | 23 | return 0; |
| 115 | 24 | } |
| 116 | 25 | |
| 117 | | #ifdef UNUSED_FUNCTION |
| 118 | | void osd_begin_final_unloading(void) |
| 119 | | { |
| 120 | | } |
| 121 | | |
| 122 | | void osd_image_load_status_changed(const device_config *img, int is_final_unload) |
| 123 | | { |
| 124 | | } |
| 125 | | #endif |
| 126 | | |
| 127 | 26 | #ifdef ENABLE_DEBUGGER |
| 128 | 27 | void osd_wait_for_debugger(void) |
| 129 | 28 | { |
| r2535 | r2536 | |
| 131 | 30 | } |
| 132 | 31 | #endif // ENABLE_DEBUGGER |
| 133 | 32 | |
| 134 | | #ifdef UNUSED_FUNCTION |
| 135 | | int win_mess_config_init(void) |
| 136 | | { |
| 137 | | return 0; |
| 138 | | } |
| 139 | | #endif |
| 140 | | |
| 141 | 33 | void osd_break_into_debugger(const char *message) |
| 142 | 34 | { |
| 143 | 35 | } |
| 144 | 36 | |
| 145 | | #ifdef UNUSED_FUNCTION |
| 146 | | void win_mess_options_init(void) |
| 147 | | { |
| 148 | | } |
| 149 | | #endif |
| 150 | 37 | |
| 151 | 38 | //============================================================ |
| 152 | 39 | // osd_alloc_executable |
| r2535 | r2536 | |
| 202 | 89 | { |
| 203 | 90 | } |
| 204 | 91 | |
| 205 | | |
| 206 | | #ifdef UNUSED_FUNCTION |
| 207 | | void osd_mess_config_init(running_machine *machine) |
| 92 | void osd_paste(running_machine *machine) |
| 208 | 93 | { |
| 209 | 94 | } |
| 210 | | #endif |
src/mess/osd/windows/menu.c
| r2535 | r2536 | |
| 921 | 921 | |
| 922 | 922 | |
| 923 | 923 | //============================================================ |
| 924 | | // paste |
| 925 | | //============================================================ |
| 926 | | |
| 927 | | static void paste(void) |
| 928 | | { |
| 929 | | HANDLE h; |
| 930 | | LPSTR text; |
| 931 | | size_t mb_size; |
| 932 | | size_t w_size; |
| 933 | | LPWSTR wtext; |
| 934 | | |
| 935 | | if (!OpenClipboard(NULL)) |
| 936 | | return; |
| 937 | | |
| 938 | | h = GetClipboardData(CF_TEXT); |
| 939 | | if (h) |
| 940 | | { |
| 941 | | text = GlobalLock(h); |
| 942 | | if (text) |
| 943 | | { |
| 944 | | mb_size = strlen(text); |
| 945 | | w_size = MultiByteToWideChar(CP_ACP, 0, text, mb_size, NULL, 0); |
| 946 | | wtext = (LPWSTR) alloca(w_size * sizeof(WCHAR)); |
| 947 | | MultiByteToWideChar(CP_ACP, 0, text, mb_size, wtext, w_size); |
| 948 | | inputx_postn_utf16(wtext, w_size); |
| 949 | | GlobalUnlock(h); |
| 950 | | } |
| 951 | | } |
| 952 | | |
| 953 | | CloseClipboard(); |
| 954 | | } |
| 955 | | |
| 956 | | |
| 957 | | |
| 958 | | //============================================================ |
| 959 | 924 | // pause |
| 960 | 925 | //============================================================ |
| 961 | 926 | |
| r2535 | r2536 | |
| 1706 | 1671 | break; |
| 1707 | 1672 | |
| 1708 | 1673 | case ID_EDIT_PASTE: |
| 1709 | | paste(); |
| 1674 | PostMessage(wnd, WM_PASTE, 0, 0); |
| 1710 | 1675 | break; |
| 1711 | 1676 | |
| 1712 | 1677 | case ID_KEYBOARD_NATURAL: |
| r2535 | r2536 | |
| 2153 | 2118 | inputx_postc(wparam); |
| 2154 | 2119 | break; |
| 2155 | 2120 | |
| 2121 | case WM_PASTE: |
| 2122 | ui_paste(Machine); |
| 2123 | break; |
| 2124 | |
| 2156 | 2125 | case WM_COMMAND: |
| 2157 | 2126 | if (invoke_command(Machine, wnd, wparam)) |
| 2158 | 2127 | break; |
src/mess/osd/windows/winmess.c
| r2535 | r2536 | |
| 8 | 8 | #include "winutil.h" |
| 9 | 9 | #include "strconv.h" |
| 10 | 10 | #include "winutf8.h" |
| 11 | #include "inputx.h" |
| 11 | 12 | |
| 12 | 13 | |
| 13 | 14 | //============================================================ |
| r2535 | r2536 | |
| 315 | 316 | |
| 316 | 317 | |
| 317 | 318 | |
| 318 | | /* ************************************************************************ */ |
| 319 | | /* Directories */ |
| 320 | | /* ************************************************************************ */ |
| 319 | //============================================================ |
| 320 | // CLIPBOARD |
| 321 | //============================================================ |
| 321 | 322 | |
| 323 | //============================================================ |
| 324 | // get_clipboard_text_by_format |
| 325 | //============================================================ |
| 326 | |
| 327 | static char *get_clipboard_text_by_format(UINT format, char *(*convert)(LPCVOID data)) |
| 328 | { |
| 329 | char *result = NULL; |
| 330 | HANDLE data_handle; |
| 331 | LPVOID data; |
| 332 | |
| 333 | // check to see if this format is available |
| 334 | if (IsClipboardFormatAvailable(format)) |
| 335 | { |
| 336 | // open the clipboard |
| 337 | if (OpenClipboard(NULL)) |
| 338 | { |
| 339 | // try to access clipboard data |
| 340 | data_handle = GetClipboardData(format); |
| 341 | if (data_handle != NULL) |
| 342 | { |
| 343 | // lock the data |
| 344 | data = GlobalLock(data_handle); |
| 345 | if (data != NULL) |
| 346 | { |
| 347 | // invoke the convert |
| 348 | result = (*convert)(data); |
| 349 | |
| 350 | // unlock the data |
| 351 | GlobalUnlock(data_handle); |
| 352 | } |
| 353 | } |
| 354 | |
| 355 | // close out the clipboard |
| 356 | CloseClipboard(); |
| 357 | } |
| 358 | } |
| 359 | return result; |
| 360 | } |
| 361 | |
| 362 | |
| 363 | |
| 364 | //============================================================ |
| 365 | // convert_wide |
| 366 | //============================================================ |
| 367 | |
| 368 | static char *convert_wide(LPCVOID data) |
| 369 | { |
| 370 | return utf8_from_wstring((LPCWSTR) data); |
| 371 | } |
| 372 | |
| 373 | |
| 374 | |
| 375 | //============================================================ |
| 376 | // convert_ansi |
| 377 | //============================================================ |
| 378 | |
| 379 | static char *convert_ansi(LPCVOID data) |
| 380 | { |
| 381 | return utf8_from_astring((LPCSTR) data); |
| 382 | } |
| 383 | |
| 384 | |
| 385 | |
| 386 | //============================================================ |
| 387 | // osd_get_clipboard_text |
| 388 | //============================================================ |
| 389 | |
| 390 | char *osd_get_clipboard_text(void) |
| 391 | { |
| 392 | char *result = NULL; |
| 393 | |
| 394 | // try to access unicode text |
| 395 | if (result == NULL) |
| 396 | result = get_clipboard_text_by_format(CF_UNICODETEXT, convert_wide); |
| 397 | |
| 398 | // try to access ANSI text |
| 399 | if (result == NULL) |
| 400 | result = get_clipboard_text_by_format(CF_TEXT, convert_ansi); |
| 401 | |
| 402 | return result; |
| 403 | } |
| 404 | |
| 405 | |
| 406 | |
| 407 | //============================================================ |
| 408 | // DIRECTORIES |
| 409 | //============================================================ |
| 410 | |
| 322 | 411 | #ifdef UNDER_CE |
| 323 | 412 | int osd_num_devices(void) |
| 324 | 413 | { |
docs/messnew.txt
| r2535 | r2536 | |
| 78 | 78 | - Fixed bug in file selector that could cause paths to contain extraneous |
| 79 | 79 | separators. (bug #1595) [Nate Woods] |
| 80 | 80 | |
| 81 | - Shift+ScrollLock now triggers a paste command. [Nate Woods] |
| 82 | |
| 81 | 83 | - [Windows] Fixed "Configure..." dialog problem when customizing certain |
| 82 | 84 | system's controllers. (bugs #1570, #1573) [Nate Woods] |
| 83 | 85 | |
| r2535 | r2536 | |
| 126 | 128 | |
| 127 | 129 | - Converted HD63450 DMA controller to the new device system. [Barry Rodewald] |
| 128 | 130 | |
| 131 | - New MESS specific OSD call: osd_get_clipboard_text(). [Nate Woods] |
| 129 | 132 | |
| 130 | 133 | |
| 134 | |
| 131 | 135 | 0.124a |
| 132 | 136 | |
| 133 | 137 | New System Drivers Supported (in no particular order): |