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

Function inputdevice_is_tablet

src/inputdevice.cpp:2555–2570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2553#define MH_START 4
2554
2555int inputdevice_is_tablet (void)
2556{
2557 int v;
2558 if (uae_boot_rom_type <= 0)
2559 return 0;
2560 if (currprefs.input_tablet == TABLET_OFF)
2561 return 0;
2562 if (currprefs.input_tablet == TABLET_MOUSEHACK)
2563 return -1;
2564 v = is_tablet ();
2565 if (!v)
2566 return 0;
2567 if (kickstart_version < 37)
2568 return v ? -1 : 0;
2569 return v ? 1 : 0;
2570}
2571
2572static uae_u8 *mousehack_address;
2573static bool mousehack_enabled;

Callers 7

mousehack_enableFunction · 0.85
inputdevice_tabletFunction · 0.85
inputdevice_mh_absFunction · 0.85
inputdevice_resetFunction · 0.85
handle_pen_eventFunction · 0.85
open_tabletFunction · 0.85

Calls 1

is_tabletFunction · 0.85

Tested by

no test coverage detected