mirror of
https://github.com/jorio/Pomme.git
synced 2024-11-19 10:30:50 +00:00
Implement GetMouse
This commit is contained in:
parent
16b087f329
commit
c34626864e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user