Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/client
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-04-19 08:52:35 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-04-19 08:52:35 +1000
commitd5f5fb5ddf0d4a9f0b0e6ac012121926d2fcd949 (patch)
tree5f1bca917aacc2bb22d0ac00857edb15b134add2 /source/client
parent9533c8d0a50c2e09d4880776f5ddfda2b7482c32 (diff)
Add hardware cursor game setting
Diffstat (limited to 'source/client')
-rw-r--r--source/client/StarClientApplication.cpp2
1 files changed, 2 insertions, 0 deletions
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);