| 10186 | } |
| 10187 | |
| 10188 | int 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 | |
| 10199 | int jsem_ismouse (int port, const struct uae_prefs *p) |
| 10200 | { |
no test coverage detected