Cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user