From 15a2006b13b78a536fbe4587694a9ad37681ee4e Mon Sep 17 00:00:00 2001 From: Shane Harris Date: Thu, 25 Aug 2022 14:58:51 +0200 Subject: [PATCH] added back in full rate capture and paste text to device. --- .../headset-settings.component.html | 65 +++++++++++++++---- .../headset-settings.component.ts | 34 ++++++++++ package.json | 2 +- 3 files changed, 88 insertions(+), 13 deletions(-) diff --git a/desktop-app/src/app/headset-settings/headset-settings.component.html b/desktop-app/src/app/headset-settings/headset-settings.component.html index 1b60d29..b7bd77e 100644 --- a/desktop-app/src/app/headset-settings/headset-settings.component.html +++ b/desktop-app/src/app/headset-settings/headset-settings.component.html @@ -244,18 +244,18 @@

- - - - - - - - - - - - + + + + + + + + + + + +
Video Capture FPS
@@ -369,6 +369,47 @@ + +
Full Rate Capture
+
+

+ This will enable/disable the full rate capture for videos recorded i.e. 60/72fps rather than 30fps. +

+
+ +
+ + + +
Paste Text to your device
+
+

+ If there is a text input field focussed on your headset you can paste / type text in here to have SideQuest type + it out on your headset. Good for long passwords you don't want to have to type on a virtual keyboard. +

+ +
+
+ + +
+
+ +
+
Send
+
+ diff --git a/desktop-app/src/app/headset-settings/headset-settings.component.ts b/desktop-app/src/app/headset-settings/headset-settings.component.ts index ed0d19e..055310d 100644 --- a/desktop-app/src/app/headset-settings/headset-settings.component.ts +++ b/desktop-app/src/app/headset-settings/headset-settings.component.ts @@ -90,6 +90,9 @@ export class HeadsetSettingsComponent implements OnInit { textureSize: string; captureFps: string; captureBitrate: string; + textToSend: string; + _textToSend: string[]; + isPassword: boolean; FFR = FFR; SSO = SSO; GU = GU; @@ -157,6 +160,9 @@ export class HeadsetSettingsComponent implements OnInit { async getBool(value: string, property: string) { const response = await this.getValue(property); + if (value === 'fullRateCaptureEnabled') { + console.log(response); + } if (response.trim() === '1') { this[value] = true; } @@ -263,6 +269,15 @@ export class HeadsetSettingsComponent implements OnInit { }) .catch(e => this.statusService.showStatus(e, true)); } + setFullRate(fullRate: GU) { + console.log('setprop debug.oculus.fullRateCapture ' + (fullRate === GU.ON ? 1 : 0)); + this.runAdbCommand('setprop debug.oculus.fullRateCapture ' + (fullRate === GU.ON ? 1 : 0)) + .then(() => { + this.statusService.showStatus('Full Rate Capture set OK!!'); + return this.getBool('fullRateCaptureEnabled', 'debug.oculus.fullRateCapture'); + }) + .catch(e => this.statusService.showStatus(e, true)); + } setTetianasPreset(tp: TP) { let width = 1920; let height = 1080; @@ -442,4 +457,23 @@ export class HeadsetSettingsComponent implements OnInit { }) .catch(e => this.statusService.showStatus(e, true)); } + pasteToDevice() { + this._textToSend = this.textToSend.split(''); + this.textToSend = ''; + this.inputCharacters() + .then(() => { + this.statusService.showStatus('Text sent to the device!!'); + }) + .catch(e => { + this.statusService.showStatus(e.toString(), true); + }); + } + inputCharacters() { + let character = this._textToSend.shift(); + return this.runAdbCommand('adb shell input text "' + character + '"').then(() => { + if (this._textToSend.length) { + return this.inputCharacters(); + } + }); + } } diff --git a/package.json b/package.json index bf2aeb5..0727e94 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "SideQuest", "productName": "SideQuest", - "version": "0.10.31", + "version": "0.10.32", "description": "A open app store for mobile android based VR devices such as the Levovo Mirage, Oculus Go, Oculus Quest, Vive Focus.", "repository": "https://github.com/SideQuestVR/SideQuest.git", "license": "UNLICENCED",