| 371 | } |
| 372 | |
| 373 | void Pointer_SetPosition(int idx, int x, int y) { |
| 374 | if (x == Pointers[idx].x && y == Pointers[idx].y) return; |
| 375 | /* TODO: reset to -1, -1 when pointer is removed */ |
| 376 | Pointers[idx].x = x; Pointers[idx].y = y; |
| 377 | |
| 378 | if (PointerHooks.MoveHook && PointerHooks.MoveHook(idx)) return; |
| 379 | |
| 380 | #ifdef CC_BUILD_TOUCH |
| 381 | if (Input_TouchMode && !(touches[idx].type & TOUCH_TYPE_GUI)) return; |
| 382 | #endif |
| 383 | Event_RaiseInt(&PointerEvents.Moved, idx); |
| 384 | } |
| 385 | |
| 386 | |
| 387 | /*########################################################################################################################* |
no test coverage detected