| 5948 | } |
| 5949 | |
| 5950 | void inputdevice_vsync (void) |
| 5951 | { |
| 5952 | int monid = 0; |
| 5953 | if (inputdevice_logging & 32) |
| 5954 | write_log (_T("*\n")); |
| 5955 | |
| 5956 | if (autopause > 0 && pause_emulation == 0) { |
| 5957 | autopause--; |
| 5958 | if (!autopause) { |
| 5959 | pausemode(1); |
| 5960 | } |
| 5961 | } |
| 5962 | if (keyboard_reset_seq_mode) { |
| 5963 | keyboard_reset_seq++; |
| 5964 | } |
| 5965 | |
| 5966 | input_frame++; |
| 5967 | mouseupdate (0, true); |
| 5968 | inputread = -1; |
| 5969 | |
| 5970 | inputdevice_handle_inputcode (); |
| 5971 | if (mouseedge_alive > 0) |
| 5972 | mouseedge_alive--; |
| 5973 | if (mouseedge(monid)) |
| 5974 | mouseedge_alive = 10; |
| 5975 | if (mousehack_alive_cnt > 0) { |
| 5976 | mousehack_alive_cnt--; |
| 5977 | if (mousehack_alive_cnt == 0) |
| 5978 | setmouseactive(0, -1); |
| 5979 | } else if (mousehack_alive_cnt < 0) { |
| 5980 | mousehack_alive_cnt++; |
| 5981 | if (mousehack_alive_cnt == 0) { |
| 5982 | mousehack_alive_cnt = 100; |
| 5983 | setmouseactive(0, -1); |
| 5984 | } |
| 5985 | } |
| 5986 | inputdevice_checkconfig (); |
| 5987 | |
| 5988 | if (currprefs.turbo_emulation > 2) { |
| 5989 | currprefs.turbo_emulation--; |
| 5990 | changed_prefs.turbo_emulation = currprefs.turbo_emulation; |
| 5991 | if (currprefs.turbo_emulation == 2) { |
| 5992 | warpmode(0); |
| 5993 | } |
| 5994 | } |
| 5995 | } |
| 5996 | |
| 5997 | void inputdevice_reset (void) |
| 5998 | { |
no test coverage detected