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

Function setmousebuttonstate

src/inputdevice.cpp:9932–9942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9930}
9931
9932void setmousebuttonstate (int mouse, int button, int state)
9933{
9934 uae_u32 obuttonmask = mice2[mouse].buttonmask;
9935 if (testmode) {
9936 inputdevice_testrecord (IDTYPE_MOUSE, mouse, IDEV_WIDGET_BUTTON, button, state, -1);
9937 return;
9938 }
9939 setbuttonstateall (&mice[mouse], &mice2[mouse], button, state);
9940 if (obuttonmask != mice2[mouse].buttonmask)
9941 mousehack_helper (mice2[mouse].buttonmask);
9942}
9943
9944/* same for joystick axis (analog or digital)
9945* (0 = center, -max = full left/top, max = full right/bottom)

Callers 8

tablet_lightpenFunction · 0.85
HandleSendMouseFunction · 0.85
handle_finger_eventFunction · 0.85
handle_mouse_wheel_eventFunction · 0.85
handle_pen_eventFunction · 0.85
handle_sdl_mouse_removedFunction · 0.85
poll_inputFunction · 0.85

Calls 3

inputdevice_testrecordFunction · 0.85
setbuttonstateallFunction · 0.85
mousehack_helperFunction · 0.85

Tested by

no test coverage detected