MCPcopy
hub / github.com/EngoEngine/engo / update

Method update

keys.go:54–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54func (km *KeyManager) update() {
55 km.mutex.Lock()
56
57 // Update the state on all the dirty keys
58 for _, key := range km.dirtmap {
59 delete(km.dirtmap, key)
60
61 state := km.mapper[key]
62 state.set(state.currentState)
63 km.mapper[key] = state
64 }
65
66 km.mutex.Unlock()
67}
68
69// KeyState is used for detecting the state of a key press.
70type KeyState struct {

Callers 13

TestKeyManagerFunction · 0.95
mobileDrawFunction · 0.45
RunIterationFunction · 0.45
RunIterationFunction · 0.45
RunIterationFunction · 0.45
RunIterationFunction · 0.45
RunIterationFunction · 0.45
TestAxisSimpleFunction · 0.45
TestAxisComplexFunction · 0.45
TestButtonSimpleFunction · 0.45

Calls 1

setMethod · 0.45

Tested by 7

TestKeyManagerFunction · 0.76
TestAxisSimpleFunction · 0.36
TestAxisComplexFunction · 0.36
TestButtonSimpleFunction · 0.36
TestButtonComplexFunction · 0.36