The absolute state of my controller input code.
Anyway, I also have a PS3 controller lying around, so I should be able to fix it somewhat reliably. Thank you very much for trying it with a controller and finding the bug!
Also, I'm really sorry it crashed for you. I never got any random crashes, but I wouldn't be surprised, since everything is barely held together by chewing gum and dreams.