On 10/22/07, Ian Mallett <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I'm almost ready for a new release of Map Editor! This version uses
> the mouse instead of the keyboard to position the cursor on the map. I
> would like to use the scroll wheel to zoom in/out, but I don't know how to
> do so. Thanks,
> Ian
for event in pygame.event.get():
if event.type == QUIT or keystate[K_ESCAPE]:
pygame.quit(); sys.exit()
if event.type == pygame.MOUSEBUTTONDOWN:
#mouse view controls
if event.button == 4: view_distance -= 5
elif event.button == 5: view_distance += 5
works, but I wanted something with pygame.mouse.get_pressed()
Oh, well. Thanks anyway.