Source

pygame / test / testjoystick.py

Diff from to

File test/testjoystick.py

             elif event.type == SDL_JOYBUTTONUP:
                 print 'Joystick %d button %d up' % \
                     (event.which, event.button)
-            elif (event.type == SDL_KEDOWN and \
+            elif (event.type == SDL_KEYDOWN and \
                   event.keysym.sym == SDLK_ESCAPE) or event.type == SDL_QUIT:
                 done = 1
             event = SDL_PollEventAndReturn()