Skip to content

Instantly share code, notes, and snippets.

@HugoArts
Created March 29, 2009 18:21
Show Gist options
  • Save HugoArts/87482 to your computer and use it in GitHub Desktop.
Save HugoArts/87482 to your computer and use it in GitHub Desktop.
def inside((x, y)):
return 0 < x < 20 and 0 < y < 20
@gunge.event.bind(pygame.MOUSEMOTION, {'pos': inside , 'rel': set([(5, 5), (-5,-5)]), 'buttons': (1, 0, 1)})
def on_mousemotion(event):
print "event called"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment