| 3703 | } |
| 3704 | |
| 3705 | static uae_u16 getjoystate (int joy) |
| 3706 | { |
| 3707 | uae_u16 v; |
| 3708 | |
| 3709 | maybe_read_input(); |
| 3710 | |
| 3711 | v = (uae_u8)mouse_x[joy] | (mouse_y[joy] << 8); |
| 3712 | #if DONGLE_DEBUG |
| 3713 | if (M68K_GETPC < 0xe00000) |
| 3714 | write_log (_T("JOY%dDAT %04X %s\n"), joy, v, debuginfo (0)); |
| 3715 | #endif |
| 3716 | if (inputdevice_logging & 2) |
| 3717 | write_log (_T("JOY%dDAT=%04x %08x\n"), joy, v, M68K_GETPC); |
| 3718 | return v; |
| 3719 | } |
| 3720 | |
| 3721 | void pulse_joydat(int joy, int xy, int dir) |
| 3722 | { |