MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / getjoystate

Function getjoystate

src/inputdevice.cpp:3705–3719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3703}
3704
3705static 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
3721void pulse_joydat(int joy, int xy, int dir)
3722{

Callers 3

JOY0DATFunction · 0.85
JOY1DATFunction · 0.85
JOYGETFunction · 0.85

Calls 3

maybe_read_inputFunction · 0.85
debuginfoFunction · 0.85
write_logFunction · 0.70

Tested by

no test coverage detected