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

Function inputdevice_unacquire

src/inputdevice.cpp:9672–9699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9670}
9671
9672void inputdevice_unacquire(int inputmask)
9673{
9674 if (!(inputmask & 4)) {
9675 for (int i = 0; i < MAX_INPUT_DEVICES; i++)
9676 idev[IDTYPE_JOYSTICK].unacquire(i);
9677 }
9678 if (!(inputmask & 2)) {
9679 for (int i = 0; i < MAX_INPUT_DEVICES; i++)
9680 idev[IDTYPE_MOUSE].unacquire(i);
9681 }
9682 if (!(inputmask & 1)) {
9683 for (int i = 0; i < MAX_INPUT_DEVICES; i++)
9684 idev[IDTYPE_KEYBOARD].unacquire(i);
9685 }
9686
9687 if (!input_acquired)
9688 return;
9689
9690 target_inputdevice_unacquire(false);
9691
9692 input_acquired = 0;
9693 if (!(inputmask & 4))
9694 idev[IDTYPE_JOYSTICK].unacquire(-1);
9695 if (!(inputmask & 2))
9696 idev[IDTYPE_MOUSE].unacquire(-1);
9697 if (!(inputmask & 1))
9698 idev[IDTYPE_KEYBOARD].unacquire(-1);
9699}
9700
9701void inputdevice_unacquire(void)
9702{

Callers 10

switchdeviceFunction · 0.85
inputdevice_devicechangeFunction · 0.85
inputdevice_mouse_reinitFunction · 0.85
debugFunction · 0.85
gui_displayFunction · 0.85
check_prefs_changed_gfxFunction · 0.85
amiberry_inactiveFunction · 0.85
handle_close_eventFunction · 0.85
open_windowsFunction · 0.85
reopenFunction · 0.85

Calls 1

Tested by

no test coverage detected