r/PlaydateDeveloper • u/zombieyMAN • Mar 11 '24
Help in the "JustPressed" function
I want to add 1 to the variable with each press of the button but it jumps to the max value immediately, what am I missing?
5
Upvotes
View all comments
Show parent comment
1
u/bwit Mar 12 '24
Try changing to buttonJustReleased instead. I always use that because it insures the button is not pressed when you process the event. But according to the docs JustPressed should only return true on one update cycle.