mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fix mouse position backward compatibility with new SDL2 versions.
Clamp the mouse coordinates to the window's dimensions.
This commit is contained in:
@@ -104,6 +104,8 @@ public:
|
||||
int getPixelWidth() const override;
|
||||
int getPixelHeight() const override;
|
||||
|
||||
void clampPositionInWindow(double *wx, double *wy) const override;
|
||||
|
||||
void windowToPixelCoords(double *x, double *y) const override;
|
||||
void pixelToWindowCoords(double *x, double *y) const override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user