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

Method JustReleased

keys.go:100–102  ·  view source on GitHub ↗

JustReleased returns whether a key was just released

()

Source from the content-addressed store, hash-verified

98
99// JustReleased returns whether a key was just released
100func (key KeyState) JustReleased() bool {
101 return (key.lastState && !key.currentState)
102}
103
104// Up returns wheter a key is not being pressed
105func (key KeyState) Up() bool {

Callers 8

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

Calls

no outgoing calls

Tested by 5

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