1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00: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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 50 additions and 4 deletions

View file

@ -1205,6 +1205,17 @@ bool CIrrDeviceLinux::isWindowMaximized() const
return WindowMaximized;
}
//! Checks if the Irrlicht device supports touch events.
bool CIrrDeviceLinux::supportsTouchEvents() const
{
#if defined(_IRR_LINUX_X11_XINPUT2_)
return true;
#else
return false;
#endif
}
//! returns color format of the window.
video::ECOLOR_FORMAT CIrrDeviceLinux::getColorFormat() const
{