mirror of
https://github.com/niellun/FastCarPlay.git
synced 2026-06-07 09:38:25 +02:00
Option for hiding cursor pointer
This commit is contained in:
@@ -5,7 +5,7 @@ The purpose of the project is to make application lightweight to run on Raspberr
|
||||

|
||||
|
||||
## 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.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user