May-14-2022, 02:47 PM
(Sep-09-2021, 11:34 AM)Than999 Wrote:(Aug-28-2021, 04:41 PM)ndc85430 Wrote: Line 46: drop the parens onpaddle_a_up
. Why? Because having the parens means calling the function and then the return value is passed toonkeypress
, which isn't what you want to do. Instead, you want to pass the function itself toonkeypress
, so that it can be called when the relevant key is pressed.
Okay, thanks for your suggestion!
I am having a similar issue and since i am a bit new to coding i dont properly understand what you are saying