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

Function jsem_isjoy

src/inputdevice.cpp:10188–10197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10186}
10187
10188int jsem_isjoy (int port, const struct uae_prefs *p)
10189{
10190 int v = JSEM_DECODEVAL(port, p);
10191 if (v < JSEM_JOYS)
10192 return -1;
10193 v -= JSEM_JOYS;
10194 if (v >= inputdevice_get_device_total (IDTYPE_JOYSTICK))
10195 return -1;
10196 return v;
10197}
10198
10199int jsem_ismouse (int port, const struct uae_prefs *p)
10200{

Callers 2

switchdeviceFunction · 0.85
compatibility_copyFunction · 0.85

Calls 1

Tested by

no test coverage detected