Hi , if you want you can probably get the total time it was pressed with this node

and every time it reaches a certain value you could remove the amount of stamina you want .
Hi , if you want you can probably get the total time it was pressed with this node

and every time it reaches a certain value you could remove the amount of stamina you want .