desktop debug -> xr
This commit is contained in:
parent
217311dfae
commit
52946f0573
2 changed files with 20 additions and 16 deletions
34
app/Oriel.cs
34
app/Oriel.cs
|
@ -67,24 +67,28 @@ public class Oriel {
|
||||||
// input
|
// input
|
||||||
Rig rig = Mono.inst.rig;
|
Rig rig = Mono.inst.rig;
|
||||||
Glove rGlove = Mono.inst.rGlove;
|
Glove rGlove = Mono.inst.rGlove;
|
||||||
// cursor = rGlove.virtualGlove.position;
|
|
||||||
Quat rGloveRot = rGlove.virtualGlove.orientation;
|
Quat rGloveRot = rGlove.virtualGlove.orientation;
|
||||||
// Vec3 lGlovePos = rig.lGlove.virtualGlove.position;
|
// Vec3 lGlovePos = rig.lGlove.virtualGlove.position;
|
||||||
// onpress held onlift
|
|
||||||
bool onpress = Input.Key(Key.Space).IsJustActive();
|
|
||||||
bool held = Input.Key(Key.Space).IsActive(); // rig.rCon.triggerBtn.held
|
|
||||||
bool onlift = Input.Key(Key.Space).IsJustInactive();
|
|
||||||
|
|
||||||
if (!Input.Key(Key.Shift).IsActive()) {
|
cursor = rGlove.virtualGlove.position;
|
||||||
Vec3 input = new Vec3(
|
|
||||||
(Input.Key(Key.S).IsActive() ? 1 : 0) - (Input.Key(Key.A).IsActive() ? 1 : 0),
|
bool onpress = rig.rCon.triggerBtn.frameDown;
|
||||||
(Input.Key(Key.F).IsActive() ? 1 : 0) - (Input.Key(Key.Q).IsActive() ? 1 : 0),
|
bool held = rig.rCon.triggerBtn.held;
|
||||||
(Input.Key(Key.R).IsActive() ? 1 : 0) - (Input.Key(Key.W).IsActive() ? 1 : 0)
|
bool onlift = rig.rCon.triggerBtn.frameUp;
|
||||||
);
|
|
||||||
if (input.Length > 0) {
|
// bool onpress = Input.Key(Key.Space).IsJustActive();
|
||||||
cursor += input.Normalized * Time.Elapsedf * 0.4f;
|
// bool held = Input.Key(Key.Space).IsActive();
|
||||||
}
|
// bool onlift = Input.Key(Key.Space).IsJustInactive();
|
||||||
}
|
// if (!Input.Key(Key.Shift).IsActive()) {
|
||||||
|
// Vec3 input = new Vec3(
|
||||||
|
// (Input.Key(Key.S).IsActive() ? 1 : 0) - (Input.Key(Key.A).IsActive() ? 1 : 0),
|
||||||
|
// (Input.Key(Key.F).IsActive() ? 1 : 0) - (Input.Key(Key.Q).IsActive() ? 1 : 0),
|
||||||
|
// (Input.Key(Key.R).IsActive() ? 1 : 0) - (Input.Key(Key.W).IsActive() ? 1 : 0)
|
||||||
|
// );
|
||||||
|
// if (input.Length > 0) {
|
||||||
|
// cursor += input.Normalized * Time.Elapsedf * 0.4f;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
Vec3 localCursor = matrixInv.Transform(cursor);
|
Vec3 localCursor = matrixInv.Transform(cursor);
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ SKSettings settings = new SKSettings {
|
||||||
assetsFolder = "add",
|
assetsFolder = "add",
|
||||||
depthMode = DepthMode.D32,
|
depthMode = DepthMode.D32,
|
||||||
disableUnfocusedSleep = true,
|
disableUnfocusedSleep = true,
|
||||||
displayPreference = DisplayMode.Flatscreen,
|
// displayPreference = DisplayMode.Flatscreen,
|
||||||
};
|
};
|
||||||
if (!SK.Initialize(settings))
|
if (!SK.Initialize(settings))
|
||||||
Environment.Exit(1);
|
Environment.Exit(1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue