MCPcopy Index your code
hub / github.com/fogleman/nes / combineButtons

Function combineButtons

ui/util.go:116–122  ·  view source on GitHub ↗
(a, b [8]bool)

Source from the content-addressed store, hash-verified

114}
115
116func combineButtons(a, b [8]bool) [8]bool {
117 var result [8]bool
118 for i := 0; i < 8; i++ {
119 result[i] = a[i] || b[i]
120 }
121 return result
122}
123
124func hashFile(path string) (string, error) {
125 data, err := ioutil.ReadFile(path)

Callers 2

updateControllersFunction · 0.85
checkButtonsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected