Refactor runtime target look input to support directional side targeting and update target state management

This commit is contained in:
2026-04-25 15:57:12 +02:00
parent d7822b9741
commit ed94970088
2 changed files with 72 additions and 94 deletions

View File

@@ -3043,7 +3043,7 @@ describe("RuntimeHost", () => {
host.dispose();
});
it("activates the proposed runtime target and cycles visible target candidates", () => {
it("toggles the proposed runtime target instead of cycling candidates", () => {
const host = new RuntimeHost({
enableRendering: false
});
@@ -3101,10 +3101,7 @@ describe("RuntimeHost", () => {
hostInternals.activateOrCycleRuntimeTarget();
expect(hostInternals.activeRuntimeTargetReference).toEqual({
kind: "interactable",
entityId: "switch-two"
});
expect(hostInternals.activeRuntimeTargetReference).toBeNull();
hostInternals.clearActiveRuntimeTarget();