static void joystick_latch_handler(CLOCK offset, void *data) { alarm_unset(joystick_alarm); alarm_context_update_next_pending(joystick_alarm->context); joystick_latch_matrix(offset); joystick_event_record(); }
void joystick_clear_all(void) { memset(latch_joystick_value, 0, sizeof latch_joystick_value); joystick_latch_matrix(0); }
void joystick_clear(unsigned int joyport) { latch_joystick_value[joyport] = 0; latch_joystick_value[0] = (BYTE)joyport; joystick_latch_matrix(0); }
void joystick_event_playback(CLOCK offset, void *data) { memcpy(latch_joystick_value, data, sizeof(joystick_value)); joystick_latch_matrix(offset); }
void joystick_clear_all(void) { memset(latch_joystick_value, 0, JOYSTICK_NUM); joystick_latch_matrix(0); }