src/mess/drivers/fm7.c
| r4923 | r4924 | |
| 63 | 63 | static UINT16 current_scancode; |
| 64 | 64 | static UINT32 key_data[4]; |
| 65 | 65 | static UINT16 vram_offset; |
| 66 | static UINT8 break_flag; |
| 66 | 67 | |
| 67 | 68 | /* key scancode conversion table |
| 68 | 69 | * The FM-7 expects different scancodes when shift,ctrl or graph is held, or |
| r4923 | r4924 | |
| 261 | 262 | ret &= ~0x01; |
| 262 | 263 | attn_irq = 0; |
| 263 | 264 | } |
| 265 | if(break_flag != 0) |
| 266 | { |
| 267 | ret &= ~0x02; |
| 268 | } |
| 264 | 269 | return ret; |
| 265 | 270 | } |
| 266 | 271 | /* |
| r4923 | r4924 | |
| 524 | 529 | if(modifiers & 0x01) |
| 525 | 530 | mod = 2; // ctrl (overrides shift, if also pressed) |
| 526 | 531 | |
| 532 | if(input_port_read(machine,"key3") & 0x40000) |
| 533 | { |
| 534 | break_flag = 1; |
| 535 | cputag_set_input_line(machine,"maincpu",M6809_FIRQ_LINE,ASSERT_LINE); |
| 536 | } |
| 537 | else |
| 538 | break_flag = 0; |
| 539 | |
| 527 | 540 | for(x=0;x<3;x++) |
| 528 | 541 | { |
| 529 | 542 | keys = input_port_read(machine,portnames[x]); |
| r4923 | r4924 | |
| 771 | 784 | key_delay = 700; // 700ms on FM-7 |
| 772 | 785 | key_repeat = 70; // 70ms on FM-7 |
| 773 | 786 | vram_offset = 0x0000; |
| 787 | break_flag = 0; |
| 774 | 788 | } |
| 775 | 789 | |
| 776 | 790 | static VIDEO_START( fm7 ) |