trunk/src/mess/drivers/supercon.c
| r18822 | r18823 | |
| 394 | 394 | { |
| 395 | 395 | LOG(("%s key_data: %02x \n",board_lines[i_18],key_data)); |
| 396 | 396 | |
| 397 | | /* Only if valid data and mouse button is pressed */ |
| 397 | /* Only if valid data */ |
| 398 | 398 | |
| 399 | | if (key_data && ioport("BUTTON_L")->read()) |
| 399 | if (key_data) |
| 400 | 400 | { |
| 401 | 401 | |
| 402 | 402 | /* Set or remove pieces */ |
| r18822 | r18823 | |
| 508 | 508 | |
| 509 | 509 | TIMER_CALLBACK_MEMBER(supercon_state::mouse_click) |
| 510 | 510 | { |
| 511 | | |
| 512 | | if (ioport("BUTTON_L")->read_safe(0) ) /* wait for mouse release */ |
| 513 | | m_timer_mouse_click->adjust(m_wait_time, 0); |
| 514 | | else |
| 515 | | m_selecting=FALSE; |
| 511 | m_selecting=FALSE; |
| 516 | 512 | } |
| 517 | 513 | |
| 518 | 514 | TIMER_DEVICE_CALLBACK_MEMBER(supercon_state::update_artwork) |
| r18822 | r18823 | |
| 584 | 580 | /* Input ports */ |
| 585 | 581 | |
| 586 | 582 | static INPUT_PORTS_START( supercon ) |
| 587 | | PORT_START("MOUSE_X") |
| 588 | | PORT_BIT( 0xffff, 0x00, IPT_MOUSE_X) PORT_SENSITIVITY(100) |
| 589 | 583 | |
| 590 | | PORT_START("MOUSE_Y") |
| 591 | | PORT_BIT( 0xffff, 0x00, IPT_MOUSE_Y ) PORT_SENSITIVITY(100) |
| 592 | | |
| 593 | | PORT_START("BUTTON_L") |
| 594 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_CODE(MOUSECODE_BUTTON1) PORT_NAME("left button") |
| 595 | | |
| 596 | | PORT_START("BUTTON_R") |
| 597 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_CODE(MOUSECODE_BUTTON2) PORT_NAME("right button") |
| 598 | | |
| 599 | 584 | PORT_START("BOARD_1") |
| 600 | 585 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) |
| 601 | 586 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) |
| r18822 | r18823 | |
| 726 | 711 | |
| 727 | 712 | PORT_START("B_CLR") |
| 728 | 713 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) |
| 714 | |
| 729 | 715 | INPUT_PORTS_END |
| 730 | 716 | |
| 731 | 717 | /* Machine driver */ |