added back in full rate capture and paste text to device.
This commit is contained in:
@@ -244,18 +244,18 @@
|
||||
</label>
|
||||
</p>
|
||||
|
||||
<!-- <h5 class="section-title">Full Rate Capture</h5>-->
|
||||
<!-- <h4 class="description-section">-->
|
||||
<!-- This will enable/disable the full rate capture for videos recorded i.e. 60/72fps rather than 30fps.-->
|
||||
<!-- </h4>-->
|
||||
<!-- <div class="switch">-->
|
||||
<!-- <label>-->
|
||||
<!-- Off-->
|
||||
<!-- <input type="checkbox" class="disable-reviews" [checked]="fullRateCaptureEnabled" (click)="fullRateCaptureEnabled ? setFullRate(GU.OFF) : setFullRate(GU.ON)">-->
|
||||
<!-- <span class="lever disable-reviews-switch"></span>-->
|
||||
<!-- On-->
|
||||
<!-- </label>-->
|
||||
<!-- </div>-->
|
||||
<!-- <h5 class="section-title">Full Rate Capture</h5>-->
|
||||
<!-- <h4 class="description-section">-->
|
||||
<!-- This will enable/disable the full rate capture for videos recorded i.e. 60/72fps rather than 30fps.-->
|
||||
<!-- </h4>-->
|
||||
<!-- <div class="switch">-->
|
||||
<!-- <label>-->
|
||||
<!-- Off-->
|
||||
<!-- <input type="checkbox" class="disable-reviews" [checked]="fullRateCaptureEnabled" (click)="fullRateCaptureEnabled ? setFullRate(GU.OFF) : setFullRate(GU.ON)">-->
|
||||
<!-- <span class="lever disable-reviews-switch"></span>-->
|
||||
<!-- On-->
|
||||
<!-- </label>-->
|
||||
<!-- </div>-->
|
||||
|
||||
|
||||
<h5 class="section-title">Video Capture FPS</h5>
|
||||
@@ -369,6 +369,47 @@
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
<h5 class="section-title">Full Rate Capture</h5>
|
||||
<div class="divider header-divider-margin margin-bottom"></div>
|
||||
<h4 class="description-section">
|
||||
This will enable/disable the full rate capture for videos recorded i.e. 60/72fps rather than 30fps.
|
||||
</h4>
|
||||
<div class="switch">
|
||||
<label>
|
||||
Off
|
||||
<input type="checkbox" class="disable-reviews" [checked]="fullRateCaptureEnabled" (click)="fullRateCaptureEnabled ? setFullRate(GU.OFF) : setFullRate(GU.ON)">
|
||||
<span class="lever disable-reviews-switch"></span>
|
||||
On
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<h5 class="section-title">Paste Text to your device</h5>
|
||||
<div class="divider header-divider-margin margin-bottom"></div>
|
||||
<h4 class="description-section">
|
||||
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.
|
||||
</h4>
|
||||
|
||||
<div class="button-section">
|
||||
<div class="input-field ">
|
||||
<input id="devicePaste"
|
||||
[type]="isPassword?'password':'text'" [(ngModel)]="textToSend" />
|
||||
<label for="devicePaste">Text to Paste</label>
|
||||
</div>
|
||||
<div class="switch">
|
||||
<label>
|
||||
Text
|
||||
<input type="checkbox" [(ngModel)]="isPassword" />
|
||||
<span class="lever"></span>
|
||||
Password
|
||||
</label>
|
||||
</div>
|
||||
<div class="pure-material-button-contained spaced flat active margin-top" (click)="pasteToDevice()">Send</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user