mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Better UX when touch events aren't supported by Irrlicht device (#15288)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user