MCPcopy Index your code
hub / github.com/EngoEngine/engo / checkModifiers

Function checkModifiers

engo_js.go:333–345  ·  view source on GitHub ↗
(event js.Value)

Source from the content-addressed store, hash-verified

331}
332
333func checkModifiers(event js.Value) {
334 mod = 0
335 for str, modifier := range jsStrToMod {
336 if event.Get(str).Bool() {
337 go func(m Modifier) {
338 pollLock.Lock()
339 mod = m
340 pollLock.Unlock()
341 }(modifier)
342 break
343 }
344 }
345}
346func requestAnimationFrame(callback func(float32)) int {
347 //return dom.GetWindow().RequestAnimationFrame(callback)
348 return js.Global().Call("requestAnimationFrame", callback).Int()

Callers 1

CreateWindowFunction · 0.85

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected