MCPcopy
hub / github.com/fogleman/nes / readKey

Function readKey

ui/util.go:55–57  ·  view source on GitHub ↗
(window *glfw.Window, key glfw.Key)

Source from the content-addressed store, hash-verified

53}
54
55func readKey(window *glfw.Window, key glfw.Key) bool {
56 return window.GetKey(key) == glfw.Press
57}
58
59func readKeys(window *glfw.Window, turbo bool) [8]bool {
60 var result [8]bool

Callers 2

UpdateMethod · 0.85
readKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected