#Is there something like Switch and Case statements, but for functions?
3 messages · Page 1 of 1 (latest)
3 messages · Page 1 of 1 (latest)
Rather than writing out whole if, else if, and else statements for each gamepad button check pressed for my game, I'm wondering if there's a cleaner way of assembling it with something similar to switch/case, since it doesn't work with functions.
Thanks in advance 💜
There isn’t no. The most you could do is store each gamepad button in an array, and then call the function in a loop
I see. Thank you! 💜