Add option for disabling all input (view-only mode) in streaming session

* By default this option is set to `false` and can be enabled using the
  new `-viewonly`/`viewonly` command-line/config options.
* When enabled, none of the input modules will be initialised, making
  the streaming session view-only, i.e. no input is sent to host.

To facilitate implementation, SDL initialisation with `sdl_init()` was moved
a bit earlier in the code to decouple from input initialisation.
This commit is contained in:
Hugo Hromic
2019-10-05 19:27:54 +01:00
parent 4ee5015557
commit ecf09e8907
5 changed files with 69 additions and 42 deletions

View File

@@ -43,6 +43,9 @@
## Send quit app request to remote after quitting session
#quitappafter = false
## Disable all input processing (view-only mode)
#viewonly = false
## Select audio device to play sound on
#audio = sysdefault