mirror of
https://github.com/jorio/Pomme.git
synced 2024-06-10 06:29:31 +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)
|
void GetMouse(Point* mouseLoc)
|
||||||
{
|
{
|
||||||
ONCE(TODOMINOR());
|
int x;
|
||||||
mouseLoc->h = 320;
|
int y;
|
||||||
mouseLoc->v = 240;
|
SDL_GetMouseState(&x, &y);
|
||||||
|
mouseLoc->h = x;
|
||||||
|
mouseLoc->v = y;
|
||||||
}
|
}
|
||||||
|
|
||||||
Boolean Button(void)
|
Boolean Button(void)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user