| 9930 | } |
| 9931 | |
| 9932 | void 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) |
no test coverage detected