MCPcopy Create free account
hub / github.com/fogleman/nes / onSelect

Method onSelect

ui/menuview.go:85–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83}
84
85func (view *MenuView) onSelect() {
86 index := view.nx*(view.j+view.scroll) + view.i
87 if index >= len(view.paths) {
88 return
89 }
90 view.director.PlayGame(view.paths[index])
91}
92
93func (view *MenuView) onChar(window *glfw.Window, char rune) {
94 now := glfw.GetTime()

Callers 1

onReleaseMethod · 0.95

Calls 1

PlayGameMethod · 0.80

Tested by

no test coverage detected