From d5f5fb5ddf0d4a9f0b0e6ac012121926d2fcd949 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Fri, 19 Apr 2024 08:52:35 +1000 Subject: Add hardware cursor game setting --- source/client/StarClientApplication.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/client') diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp index c83c9e7..82d18cf 100644 --- a/source/client/StarClientApplication.cpp +++ b/source/client/StarClientApplication.cpp @@ -53,6 +53,7 @@ Json const AdditionalDefaultConfiguration = Json::parseJson(R"JSON( "sfxVol" : 100, "instrumentVol" : 100, "musicVol" : 70, + "hardwareCursor" : true, "windowedResolution" : [1000, 600], "fullscreenResolution" : [1920, 1080], "fullscreen" : false, @@ -207,6 +208,7 @@ void ClientApplication::applicationInit(ApplicationControllerPtr appController) appController->setTargetUpdateRate(updateRate); appController->setApplicationTitle(assets->json("/client.config:windowTitle").toString()); appController->setVSyncEnabled(vsync); + appController->setCursorHardware(configuration->get("hardwareCursor").optBool().value(true)); if (fullscreen) appController->setFullscreenWindow(fullscreenSize); -- cgit v1.2.3