mirror of
https://github.com/niellun/FastCarPlay.git
synced 2026-09-26 19:21:55 +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
|
## 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.
|
Devices might have different vendor and product id's. Check your with lsusb and update settings if necessary.
|
||||||
|
|
||||||
## Setup
|
## 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.
|
The project is using [Open Sans font](https://fonts.google.com/specimen/Open+Sans). See FONT_LICENCE for details.
|
||||||
|
|
||||||
## Finally
|
## 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
|
# Application starts in full screen
|
||||||
#fullscreen = true
|
#fullscreen = true
|
||||||
|
|
||||||
|
# Show mouse pointer
|
||||||
|
#cursor = false
|
||||||
|
|
||||||
# Enable generic console logging. Can reduce performace
|
# Enable generic console logging. Can reduce performace
|
||||||
#logging = false
|
#logging = false
|
||||||
|
|
||||||
|
|||||||
@@ -150,7 +150,6 @@ void Decoder::loop(AVCodecContext *context, AVCodecParserContext *parser, AVPack
|
|||||||
uint32_t counter = 0;
|
uint32_t counter = 0;
|
||||||
|
|
||||||
// Main decoding loop; runs until global_quit flag is set
|
// Main decoding loop; runs until global_quit flag is set
|
||||||
;
|
|
||||||
while (_data->wait(_active))
|
while (_data->wait(_active))
|
||||||
{
|
{
|
||||||
// Get raw data segment from queue
|
// Get raw data segment from queue
|
||||||
|
|||||||
@@ -355,6 +355,9 @@ int start()
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!Settings::cursor)
|
||||||
|
SDL_ShowCursor(SDL_DISABLE);
|
||||||
|
|
||||||
// Create accelerated renderer for the window
|
// Create accelerated renderer for the window
|
||||||
renderer = SDL_CreateRenderer(window, -1, (Settings::vsync ? (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC) : SDL_RENDERER_ACCELERATED));
|
renderer = SDL_CreateRenderer(window, -1, (Settings::vsync ? (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC) : SDL_RENDERER_ACCELERATED));
|
||||||
if (renderer)
|
if (renderer)
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ public:
|
|||||||
static inline Setting<int> sourceFps{"source-fps", 50};
|
static inline Setting<int> sourceFps{"source-fps", 50};
|
||||||
static inline Setting<int> fps{"fps", 50};
|
static inline Setting<int> fps{"fps", 50};
|
||||||
static inline Setting<bool> fullscreen{"fullscreen", true};
|
static inline Setting<bool> fullscreen{"fullscreen", true};
|
||||||
|
static inline Setting<bool> cursor{"cursor", false};
|
||||||
static inline Setting<bool> logging{"logging", false};
|
static inline Setting<bool> logging{"logging", false};
|
||||||
|
|
||||||
// Device configurations section
|
// Device configurations section
|
||||||
|
|||||||
Reference in New Issue
Block a user