This commit is contained in:
2026-06-07 21:16:46 -05:00
parent 51388c90d5
commit dc41c0e302
97 changed files with 1107 additions and 481 deletions
+2 -2
View File
@@ -25,10 +25,10 @@ void inputUpdateSDL2(void) {
#endif
#ifdef DUSK_INPUT_POINTER
int pointerX, pointerY;
int_t pointerX, pointerY;
SDL_GetMouseState(&pointerX, &pointerY);
int windowWidth, windowHeight;
int_t windowWidth, windowHeight;
SDL_GetWindowSize(DISPLAY.window, &windowWidth, &windowHeight);
INPUT.platform.mouseX = (float_t)pointerX / (float_t)windowWidth;