Skip to content

Commit 3eaff58

Browse files
committed
menu button runs prog
1 parent b27f1f5 commit 3eaff58

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

editor.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -230,16 +230,11 @@ namespace microcode {
230230
makeOnEvent(controller.left.id, CursorDir.Left)
231231
makeOnEvent(controller.up.id, CursorDir.Up)
232232
makeOnEvent(controller.down.id, CursorDir.Down)
233-
if (!Options.menuProfiling)
234-
context.onEvent(
235-
ControllerButtonEvent.Pressed,
236-
controller.menu.id,
237-
() => {
238-
// go back to home screen
239-
this.app.popScene()
240-
this.app.pushScene(new Home(this.app))
241-
}
242-
)
233+
context.onEvent(
234+
ControllerButtonEvent.Pressed,
235+
controller.menu.id,
236+
() => this.runProgram()
237+
)
243238
this.hudroot = new Placeable()
244239
this.hudroot.xfrm.localPos = new Vec2(0, Screen.TOP_EDGE)
245240
this.scrollroot = new Placeable()

0 commit comments

Comments
 (0)