Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/f/l/Flappy-0.3.7/samples/mouse.py   Flappy(Download)
        spr.addEventListener(MouseEvent.MOUSE_OVER, self.on_spr_mouse_over)
        spr.addEventListener(MouseEvent.MOUSE_OUT, self.on_spr_mouse_out)
        spr.addEventListener(MouseEvent.MOUSE_DOWN, self.on_spr_mouse_down)
        spr.addEventListener(MouseEvent.MOUSE_UP, self.on_spr_mouse_up)
 

src/f/l/Flappy-0.3.7/flappy/display/stage.py   Flappy(Download)
 
    _S_DOWN_EVENTS = (
        MouseEvent.MOUSE_DOWN,
        MouseEvent.MIDDLE_MOUSE_DOWN,
        MouseEvent.RIGHT_MOUSE_DOWN
            _core.etMouseDown:
                lambda event:
                    self._on_mouse(event, MouseEvent.MOUSE_DOWN, True),
 
            _core.etMouseUp:
 
        wheel = 0
        if event_type == MouseEvent.MOUSE_DOWN:
            if button > 2:
                return
 
        click_obj = stack[-1] if len(stack) else self
        if event_type == MouseEvent.MOUSE_DOWN and button < 3:
            self._last_down[button] = click_obj
 
 
        if event.flags & TouchEvent.efPrimaryTouch:
            self._on_mouse(event, MouseEvent.MOUSE_DOWN, False)
 
    def _on_touch_move(self, event):