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

Function mousehack_helper

src/inputdevice.cpp:3266–3280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3264#endif
3265
3266static void mousehack_helper (uae_u32 buttonmask)
3267{
3268 int x, y;
3269 //write_log (_T("mousehack_helper %08X\n"), buttonmask);
3270
3271 if (quit_program) {
3272 return;
3273 }
3274 if (!(currprefs.input_mouse_untrap & MOUSEUNTRAP_MAGIC) && currprefs.input_tablet < TABLET_MOUSEHACK) {
3275 return;
3276 }
3277
3278 get_mouse_position(&x, &y, lastmx, lastmy);
3279 inputdevice_mh_abs(x, y, buttonmask);
3280}
3281
3282static int mouseedge_x, mouseedge_y, mouseedge_time;
3283#define MOUSEEDGE_RANGE 100

Callers 3

setmousebuttonstateallFunction · 0.85
setmousebuttonstateFunction · 0.85
setmousestateFunction · 0.85

Calls 2

get_mouse_positionFunction · 0.85
inputdevice_mh_absFunction · 0.85

Tested by

no test coverage detected