mirror of
https://github.com/love2d/love.git
synced 2026-08-17 02:58:31 +02:00
Add love.window.getDisplayOrientation and a love.displayrotated callback. Resolves issue #1441.
Note that this tracks screen orientation, rather than device orientation.
This commit is contained in:
@@ -57,6 +57,8 @@ public:
|
||||
|
||||
const char *getDisplayName(int displayindex) const override;
|
||||
|
||||
DisplayOrientation getDisplayOrientation(int displayindex) const override;
|
||||
|
||||
std::vector<WindowSize> getFullscreenSizes(int displayindex) const override;
|
||||
|
||||
void getDesktopDimensions(int displayindex, int &width, int &height) const override;
|
||||
|
||||
Reference in New Issue
Block a user