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

Method Get

keys.go:46–52  ·  view source on GitHub ↗

Get retrieves a keys state.

(k Key)

Source from the content-addressed store, hash-verified

44
45// Get retrieves a keys state.
46func (km *KeyManager) Get(k Key) KeyState {
47 km.mutex.RLock()
48 ks := km.mapper[k]
49 km.mutex.RUnlock()
50
51 return ks
52}
53
54func (km *KeyManager) update() {
55 km.mutex.Lock()

Callers 15

registerGamepadImplMethod · 0.80
updateImplMethod · 0.80
newNodeMethod · 0.80
newQuadtreeNodeDataMethod · 0.80
engo_js.goFile · 0.80
CreateWindowFunction · 0.80
WindowWidthFunction · 0.80
WindowHeightFunction · 0.80
CanvasWidthFunction · 0.80
CanvasHeightFunction · 0.80
rafPolyfillFunction · 0.80
checkModifiersFunction · 0.80

Calls

no outgoing calls

Tested by 3

runKeyChecksFunction · 0.64
checkKeyConfigOptimalFunction · 0.64
checkKeyConfigSubOptimalFunction · 0.64