Did I find the right examples for you? yes no

All Samples(18)  |  Call(18)  |  Derive(0)  |  Import(0)
pygame.mouse.get_rel(): return (x, y)
get the amount of mouse movement

src/p/y/pylygon-1.3.2rc/examples/distance.py   pylygon(Download)
    font = Font(None, 24)
 
    r = mouse.get_rel()
    grab, other = None, None
    while 1:
        draw.circle(SCREEN, (255, 255, 255), rhombus.C.astype(int), 3)
 
        r = array(mouse.get_rel())
        if grab:
            grab.C = mouse_pos

src/p/y/Pygame-Examples-For-Learning-HEAD/rotation.py   Pygame-Examples-For-Learning(Download)
   exit()
 screen.fill((0,0,0))
 rotation=pygame.mouse.get_rel()
 buttonpress=pygame.mouse.get_pressed()
 press=pygame.key.get_pressed()

src/m/e/meks-pygame-samples-HEAD/drag_text.py   meks-pygame-samples(Download)
        """
        if self.click:
            self.rect.move_ip(pg.mouse.get_rel())
            self.rect.clamp_ip(screen_rect)
        self.text_rect.center = (self.rect.centerx, self.rect.centery+90)
                if self.player.rect.collidepoint(event.pos):
                    self.player.click = True
                    pg.mouse.get_rel()
            elif event.type == pg.MOUSEBUTTONUP and event.button == 1:
                self.player.click = False

src/h/i/hitt-0.1.22/hitt/hid.py   hitt(Download)
        self.button_up_events = pygame.event.get(pygame.MOUSEBUTTONUP)
        self.motion_events = pygame.event.get(pygame.MOUSEMOTION)
        self.rel = pygame.mouse.get_rel()
 
 

src/m/y/Myrmidon-HEAD/engine/input/pygame/engine.py   Myrmidon(Download)
 
                self.mouse.pos = pygame.mouse.get_pos()
                self.mouse.rel = pygame.mouse.get_rel()
                self.mouse.x = self.mouse.pos[0]
                self.mouse.y = self.mouse.pos[1]

src/t/u/tutorial-pygame-HEAD/tutorial_pygame_3/ejemplo9.py   tutorial-pygame(Download)
        # Obtenemos la posicon del mouse
        pos_mouse = pygame.mouse.get_pos()
        mov_mouse = pygame.mouse.get_rel()
 
        # Actualizamos los obejos en pantalla

src/t/u/tutorial-pygame-HEAD/tutorial_pygame_3/ejemplo8.py   tutorial-pygame(Download)
        # Obtenemos la posicon del mouse
        pos_mouse = pygame.mouse.get_pos()
        mov_mouse = pygame.mouse.get_rel()
 
        # Actualizamos los obejos en pantalla

src/t/u/tutorial-pygame-HEAD/tutorial_pygame_3/ejemplo7.py   tutorial-pygame(Download)
        # Obtenemos la posicon del mouse
        pos_mouse = pygame.mouse.get_pos()
        mov_mouse = pygame.mouse.get_rel()
 
        # Actualizamos los obejos en pantalla

src/t/u/tutorial-pygame-HEAD/tutorial_pygame_3/ejemplo6.py   tutorial-pygame(Download)
        # Obtenemos la posicon del mouse
        pos_mouse = pygame.mouse.get_pos()
        mov_mouse = pygame.mouse.get_rel()
 
        # Actualizamos los obejos en pantalla

src/t/u/tutorial-pygame-HEAD/tutorial_pygame_3/ejemplo5.py   tutorial-pygame(Download)
        # Obtenemos la posicon del mouse
        pos_mouse = pygame.mouse.get_pos()
        mov_mouse = pygame.mouse.get_rel()
 
        # Actualizamos los obejos en pantalla

  1 | 2  Next