| 8194 | } |
| 8195 | |
| 8196 | static void resetinput (void) |
| 8197 | { |
| 8198 | if ((input_play || input_record) && hsync_counter > 0) |
| 8199 | return; |
| 8200 | cd32_shifter[0] = cd32_shifter[1] = 8; |
| 8201 | for (int i = 0; i < MAX_JPORTS; i++) { |
| 8202 | oleft[i] = 0; |
| 8203 | oright[i] = 0; |
| 8204 | otop[i] = 0; |
| 8205 | obot[i] = 0; |
| 8206 | joybutton[i] = 0; |
| 8207 | joydir[i] = 0; |
| 8208 | mouse_deltanoreset[i][0] = 0; |
| 8209 | mouse_delta[i][0] = 0; |
| 8210 | mouse_deltanoreset[i][1] = 0; |
| 8211 | mouse_delta[i][1] = 0; |
| 8212 | mouse_deltanoreset[i][2] = 0; |
| 8213 | mouse_delta[i][2] = 0; |
| 8214 | } |
| 8215 | for (int i = 0; i < 2; i++) { |
| 8216 | lightpen_delta[i][0] = lightpen_delta[i][1] = 0; |
| 8217 | lightpen_deltanoreset[i][0] = lightpen_deltanoreset[i][1] = 0; |
| 8218 | } |
| 8219 | memset (keybuf, 0, sizeof keybuf); |
| 8220 | for (int i = 0; i < INPUT_QUEUE_SIZE; i++) |
| 8221 | input_queue[i].linecnt = input_queue[i].nextlinecnt = -1; |
| 8222 | |
| 8223 | for (int i = 0; i < MAX_INPUT_SUB_EVENT; i++) { |
| 8224 | sublevdir[0][i] = i; |
| 8225 | sublevdir[1][i] = MAX_INPUT_SUB_EVENT - i - 1; |
| 8226 | } |
| 8227 | for (int i = 0; i < MAX_JPORTS_CUSTOM; i++) { |
| 8228 | custom_autoswitch_joy[i] = 0; |
| 8229 | custom_autoswitch_mouse[i] = 0; |
| 8230 | } |
| 8231 | } |
| 8232 | |
| 8233 | void inputdevice_copyjports(struct uae_prefs *srcprefs, struct uae_prefs *dstprefs) |
| 8234 | { |
no outgoing calls
no test coverage detected