Move SetMousePosition out of rcore
This commit is contained in:
parent
a18fe28e6f
commit
ea71464653
1 changed files with 38 additions and 16 deletions
|
|
@ -1668,4 +1668,11 @@ int GetMouseY(void)
|
|||
Vector2 GetMousePosition(void)
|
||||
{
|
||||
return GetTouchPosition(0);
|
||||
}
|
||||
}
|
||||
|
||||
// Set mouse position XY
|
||||
void SetMousePosition(int x, int y)
|
||||
{
|
||||
CORE.Input.Mouse.currentPosition = (Vector2){ (float)x, (float)y };
|
||||
CORE.Input.Mouse.previousPosition = CORE.Input.Mouse.currentPosition;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue