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

Method JustPressed

keys.go:95–97  ·  view source on GitHub ↗

JustPressed returns whether a key was just pressed

()

Source from the content-addressed store, hash-verified

93
94// JustPressed returns whether a key was just pressed
95func (key KeyState) JustPressed() bool {
96 return (!key.lastState && key.currentState)
97}
98
99// JustReleased returns whether a key was just released
100func (key KeyState) JustReleased() bool {

Callers 14

runKeyChecksFunction · 0.45
checkKeyConfigOptimalFunction · 0.45
checkKeyConfigSubOptimalFunction · 0.45
runBtnChecksFunction · 0.45
checkBtnConfigOptimalFunction · 0.45
setAnimationFunction · 0.45
getSpeedFunction · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 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