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

Method Down

keys.go:110–112  ·  view source on GitHub ↗

Down returns wether a key is being pressed

()

Source from the content-addressed store, hash-verified

108
109// Down returns wether a key is being pressed
110func (key KeyState) Down() bool {
111 return (key.lastState && key.currentState)
112}

Callers 12

runKeyChecksFunction · 0.45
checkKeyConfigOptimalFunction · 0.45
checkKeyConfigSubOptimalFunction · 0.45
ValueMethod · 0.45
runBtnChecksFunction · 0.45
checkBtnConfigOptimalFunction · 0.45
setAnimationFunction · 0.45
getSpeedFunction · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
getSpeedFunction · 0.45
UpdateMethod · 0.45

Calls

no outgoing calls

Tested by 5

runKeyChecksFunction · 0.36
checkKeyConfigOptimalFunction · 0.36
checkKeyConfigSubOptimalFunction · 0.36
runBtnChecksFunction · 0.36
checkBtnConfigOptimalFunction · 0.36