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

Method Up

keys.go:105–107  ·  view source on GitHub ↗

Up returns wheter a key is not being pressed

()

Source from the content-addressed store, hash-verified

103
104// Up returns wheter a key is not being pressed
105func (key KeyState) Up() bool {
106 return (!key.lastState && !key.currentState)
107}
108
109// Down returns wether a key is being pressed
110func (key KeyState) Down() bool {

Callers 4

runKeyChecksFunction · 0.45
checkKeyConfigOptimalFunction · 0.45
checkKeyConfigSubOptimalFunction · 0.45
UpdateMethod · 0.45

Calls

no outgoing calls

Tested by 3

runKeyChecksFunction · 0.36
checkKeyConfigOptimalFunction · 0.36
checkKeyConfigSubOptimalFunction · 0.36