1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Better UX when touch events aren't supported by Irrlicht device (#15288)

This commit is contained in:
grorp
2024-10-16 21:37:00 +02:00
committed by GitHub
parent 24704b01d9
commit 9f43018df2
10 changed files with 50 additions and 4 deletions

View File

@@ -193,6 +193,11 @@ public:
/** If this returns false, you should not do any rendering. */
virtual bool isWindowVisible() const { return true; };
//! Checks if the Irrlicht device supports touch events.
/** Intentionally doesn't check whether a touch input device is available
or similar. */
virtual bool supportsTouchEvents() const { return false; }
//! Get the current color format of the window
/** \return Color format of the window. */
virtual video::ECOLOR_FORMAT getColorFormat() const = 0;