sdlterm/cython/sdlterm.pyx
changeset 55 1ab0edd5d784
parent 54 86b84535726e
child 57 911927edbdde
equal deleted inserted replaced
54:86b84535726e 55:1ab0edd5d784
    92             return ('mousemove', event.mouse.x, event.mouse.y)
    92             return ('mousemove', event.mouse.x, event.mouse.y)
    93         if event.type == event.MOUSEDOWN:
    93         if event.type == event.MOUSEDOWN:
    94             return ('mousedown', event.mouse.x, event.mouse.y, event.mouse.button)
    94             return ('mousedown', event.mouse.x, event.mouse.y, event.mouse.button)
    95         if event.type == event.MOUSEUP:
    95         if event.type == event.MOUSEUP:
    96             return ('mouseup', event.mouse.x, event.mouse.y, event.mouse.button)
    96             return ('mouseup', event.mouse.x, event.mouse.y, event.mouse.button)
       
    97         if event.type == event.MOUSEWHEEL:
       
    98             return ('mousewheel', event.mouse.x, event.mouse.y, event.mouse.button)
    97         if event.type == event.KEYPRESS:
    99         if event.type == event.KEYPRESS:
    98             keyname = event.key.keyname
   100             keyname = event.key.keyname
    99             if keyname:
   101             if keyname:
   100                 keyname = keyname.decode()
   102                 keyname = keyname.decode()
   101             else:
   103             else: