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

Function inputdevice_reset

src/inputdevice.cpp:5997–6029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5995}
5996
5997void inputdevice_reset (void)
5998{
5999 magicmouse_ibase = 0;
6000 magicmouse_gfxbase = 0;
6001 mousehack_reset();
6002 if (inputdevice_is_tablet()) {
6003 mousehack_enable();
6004 }
6005 keyboard_reset_seq = 0;
6006 keyboard_reset_seq_mode = 0;
6007 bouncy = 0;
6008 while (delayed_events) {
6009 struct delayed_event *de = delayed_events;
6010 delayed_events = de->next;
6011 xfree (de->event_string);
6012 xfree (de);
6013 }
6014 for (int i = 0; i < 2; i++) {
6015 lastmxy_abs[i][0] = 0;
6016 lastmxy_abs[i][1] = 0;
6017 }
6018 for (int i = 0; i < MAX_JPORTS; i++) {
6019 pc_mouse_buttons[i] = 0;
6020 }
6021 lightpen_trigger2 = 0;
6022 cubo_flag = 0;
6023#ifdef ARCADIA
6024 alg_flag &= 1;
6025#endif
6026#ifdef WITH_DRACO
6027 draco_keybord_repeat_cnt = 0;
6028#endif
6029}
6030
6031static int getoldport (struct uae_input_device *id)
6032{

Callers 1

custom_resetFunction · 0.85

Calls 3

mousehack_resetFunction · 0.85
inputdevice_is_tabletFunction · 0.85
mousehack_enableFunction · 0.85

Tested by

no test coverage detected