For the exemple:
Pressing the Spacebar will produce a cube on the left with the usual RepeatDelay option set to .5
but it also produces a cube on the right with no RepeatDelay being set. The same bit of code is used for the button 0 of the gamepad.
Can you guys tell me if the logic is good/optimized before I duplicate this to my game?
By the way, how (but it's more a "where") can I write a function to be called instead of duplicating the same code twice on the space bar and the gamepad button?
Thanks
