Move GetMouseX, GetMouseY, GetMousePosition out of rcore
This commit is contained in:
parent
4c59791903
commit
a18fe28e6f
1 changed files with 90 additions and 38 deletions
|
|
@ -1651,3 +1651,21 @@ int SetGamepadMappings(const char *mappings)
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Get mouse position X
|
||||
int GetMouseX(void)
|
||||
{
|
||||
return (int)CORE.Input.Touch.position[0].x;
|
||||
}
|
||||
|
||||
// Get mouse position Y
|
||||
int GetMouseY(void)
|
||||
{
|
||||
return (int)CORE.Input.Touch.position[0].y;
|
||||
}
|
||||
|
||||
// Get mouse position XY
|
||||
Vector2 GetMousePosition(void)
|
||||
{
|
||||
return GetTouchPosition(0);
|
||||
}
|
||||
Loading…
Reference in a new issue