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:
@@ -1576,6 +1576,9 @@ bool Game::createClient(const GameStartData &start_data)
|
||||
|
||||
bool Game::shouldShowTouchControls()
|
||||
{
|
||||
if (!device->supportsTouchEvents())
|
||||
return false;
|
||||
|
||||
const std::string &touch_controls = g_settings->get("touch_controls");
|
||||
if (touch_controls == "auto")
|
||||
return RenderingEngine::getLastPointerType() == PointerType::Touch;
|
||||
|
Reference in New Issue
Block a user