Implement GetMouse

This commit is contained in:
Iliyas Jorio 2020-11-22 11:20:09 +01:00
parent 16b087f329
commit c34626864e

View File

@ -181,9 +181,11 @@ void GetKeys(KeyMap km)
void GetMouse(Point* mouseLoc)
{
ONCE(TODOMINOR());
mouseLoc->h = 320;
mouseLoc->v = 240;
int x;
int y;
SDL_GetMouseState(&x, &y);
mouseLoc->h = x;
mouseLoc->v = y;
}
Boolean Button(void)