| 44 | MouseInput g_MouseInput = {SELECTION_NONE, {0,0}, {0,0}, NULL, NULL}; |
| 45 | |
| 46 | void mouseInputCallSelection() |
| 47 | { |
| 48 | if (g_MouseInput.pSelectionCallback != NULL) |
| 49 | { |
| 50 | IntRect selection; |
| 51 | selection.uBottom = XN_MIN(g_MouseInput.StartSelection.Y, g_MouseInput.LastLocation.Y); |
| 52 | selection.uTop = XN_MAX(g_MouseInput.StartSelection.Y, g_MouseInput.LastLocation.Y); |
| 53 | selection.uLeft = XN_MIN(g_MouseInput.StartSelection.X, g_MouseInput.LastLocation.X); |
| 54 | selection.uRight = XN_MAX(g_MouseInput.StartSelection.X, g_MouseInput.LastLocation.X); |
| 55 | |
| 56 | g_MouseInput.pSelectionCallback(g_MouseInput.nSelectionState, selection); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | void mouseInputMotion(int x, int y) |
| 61 | { |
no outgoing calls
no test coverage detected