Option for hiding cursor pointer

This commit is contained in:
Niellune
2025-11-30 15:25:33 +02:00
parent 40836c7411
commit 85e2357400
5 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ The purpose of the project is to make application lightweight to run on Raspberr
![Logo](docs/images/screenshot.png)
## Dongles
The dongles are readily available from Amazon or Aliexpress labeled by Carlinkit. They also seems to have official web site https://www.carlinkit.com/.
The dongles are readily available from Amazon or Aliexpress labeled by Carlinkit or CPC200-CCPM. They also seems to have official web site https://www.carlinkit.com/.
Devices might have different vendor and product id's. Check your with lsusb and update settings if necessary.
## Setup
@@ -122,4 +122,4 @@ The project is licenced under GPL-3 licence. See LICENCE for details.
The project is using [Open Sans font](https://fonts.google.com/specimen/Open+Sans). See FONT_LICENCE for details.
## Finally
If you have any questions, suggestions or you find problems running this feel free to open issue.
If you have any questions, suggestions or you find problems running this feel free to open issue.
+3
View File
@@ -23,6 +23,9 @@
# Application starts in full screen
#fullscreen = true
# Show mouse pointer
#cursor = false
# Enable generic console logging. Can reduce performace
#logging = false
-1
View File
@@ -150,7 +150,6 @@ void Decoder::loop(AVCodecContext *context, AVCodecParserContext *parser, AVPack
uint32_t counter = 0;
// Main decoding loop; runs until global_quit flag is set
;
while (_data->wait(_active))
{
// Get raw data segment from queue
+3
View File
@@ -355,6 +355,9 @@ int start()
return 1;
}
if(!Settings::cursor)
SDL_ShowCursor(SDL_DISABLE);
// Create accelerated renderer for the window
renderer = SDL_CreateRenderer(window, -1, (Settings::vsync ? (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC) : SDL_RENDERER_ACCELERATED));
if (renderer)
+1
View File
@@ -15,6 +15,7 @@ public:
static inline Setting<int> sourceFps{"source-fps", 50};
static inline Setting<int> fps{"fps", 50};
static inline Setting<bool> fullscreen{"fullscreen", true};
static inline Setting<bool> cursor{"cursor", false};
static inline Setting<bool> logging{"logging", false};
// Device configurations section