I tried to make my own function in pset4-breakout to move the paddle but when i run and take my mouse to the output window I always get segmentation fault. I have tried gdb also but still i'm not able to understand what's the error. function decleration

function call

function definition

  • It would be better if you could upload the entire code. Btw on which line do you get segmentation fault?
    – Ibrahim
    Dec 30, 2014 at 20:13

1 Answer 1


You always return a NULL event.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .