Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Update WidgetUISystem.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
speigg committed Mar 31, 2023
1 parent 37f5ff9 commit 840b044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client-core/src/systems/WidgetUISystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default async function WidgetUISystem() {
let createdWidgets = false
const showWidgetMenu = (show: boolean) => {
// temporarily only allow widgets on non hmd for local dev
if (!createdWidgets && (isMobileXRHeadset() || isDev)) {
if (!createdWidgets && (isMobileXRHeadset || isDev)) {
createdWidgets = true
createAnchorWidget()
// createHeightAdjustmentWidget()
Expand Down Expand Up @@ -152,7 +152,7 @@ export default async function WidgetUISystem() {
if (keys.ButtonX?.down) toggleWidgetsMenu('left')
if (keys.ButtonA?.down) toggleWidgetsMenu('right')
/** @todo allow non HMDs to access the widget menu too */
if ((isDev || isMobileXRHeadset()) && keys.Escape?.down) toggleWidgetsMenu()
if ((isDev || isMobileXRHeadset) && keys.Escape?.down) toggleWidgetsMenu()

for (const action of showWidgetQueue()) {
const widget = Engine.instance.widgets.get(action.id)!
Expand Down

0 comments on commit 840b044

Please sign in to comment.