Mouse::SetX/Y fixes

This commit is contained in:
Rob Loach
2020-12-31 17:02:52 -05:00
parent da0736e88f
commit b525c60c6b
2 changed files with 6 additions and 3 deletions

View File

@@ -9,10 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `Model.Draw()`
- `Model.DrawWires()`
- `models_first_person_maze.cpp` example
- Error correction when unloading images, materials, models and meshes
- String override functions to use `std::string` directly instead of `const char*`
- `std::vector<std::string>` wrapper for `GetDirectoryFiles()` and `GetDroppedFiles()`
### Fixed
- `Mouse::SetX()` and `Mouse::SetY()`
- Error correction when unloading images, materials, models and meshes
## [v3.5.0-alpha1] - 2020-12-26
### Changed
- Update to raylib 3.5.0

View File

@@ -57,12 +57,12 @@ class Mouse {
}
inline Mouse& SetX(int x) {
::SetMouseOffset(x, GetY());
::SetMousePosition(x, GetY());
return *this;
}
inline Mouse& SetY(int y) {
::SetMouseOffset(GetX(), y);
::SetMousePosition(GetX(), y);
return *this;
}