removed touch as input option, leave always enabled

This commit is contained in:
devl0rd 2020-04-28 17:34:52 -06:00
parent 11c6e1a578
commit 74d129f74c
4 changed files with 7 additions and 8 deletions

View file

@ -19,7 +19,7 @@ var encoding = "CPU";
var screenWidth = 1280;
var screenHeight = 720;
var screenScale = 1;
var mouseControl = "TOUCH";
var mouseControl = "ANALOG";
function connect() {
hidStreamClient.connect({
host: ip,
@ -513,7 +513,7 @@ if (args.length > 1) {
if (args.includes("/m") && args[args.indexOf("/m") + 1]) {
mouseControl = args[args.indexOf("/m") + 1];
} else {
mouseControl = "TOUCH";
mouseControl = "ANALOG";
}
if (args.includes("/noVideo")) {
usingVideo = false;

View file

@ -68,10 +68,9 @@
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle btn-block" type="button" id="mouseControlDrop"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Mouse Control (Touch)
Mouse Control (Analog)
</button>
<div class="dropdown-menu" aria-labelledby="mouseControlDrop">
<a class="dropdown-item" href="javascript:setMouseControl('TOUCH')">Touch</a>
<a class="dropdown-item" href="javascript:setMouseControl('ANALOG')">Analog</a>
<a class="dropdown-item" href="javascript:setMouseControl('GYRO')">Gyro</a>
</div>

View file

@ -54,7 +54,7 @@ function initSettings() {
clientSettings.encoding = "CPU";
}
if (!clientSettings.hasOwnProperty("mouseControl")) {
clientSettings.mouseControl = "TOUCH";
clientSettings.mouseControl = "ANALOG";
}
if (!clientSettings.hasOwnProperty("firstInstall")) {
clientSettings.firstInstall = false;
@ -101,8 +101,8 @@ function applyClientSettings() {
} else if (clientSettings.mouseControl == "GYRO") {
$("#mouseControlDrop").html("Mouse Control (Gyro)");
} else {
$("#mouseControlDrop").html("Mouse Control (Touch)");
clientSettings.mouseControl = "TOUCH";
$("#mouseControlDrop").html("Mouse Control (Analog)");
clientSettings.mouseControl = "ANALOG";
}
if (clientSettings.debug) {
$("#dev-btn").fadeIn(400);

View file

@ -151,7 +151,7 @@ function startStreamer(arg) {
} else if (arg.mouseControl == "GYRO") {
args.push("GYRO");
} else {
args.push("TOUCH");
args.push("ANALOG");
}
streamerProcess = spawn(
"./NxStreamingService.exe",