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_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)
 
        self.cursor = Sprite()

src/f/l/Flappy-0.3.7/flappy/display/stage.py   Flappy(Download)
 
    _S_UP_EVENTS = (
        MouseEvent.MOUSE_UP,
        MouseEvent.MIDDLE_MOUSE_UP,
        MouseEvent.RIGHT_MOUSE_UP
            _core.etMouseUp:
                lambda event:
                    self._on_mouse(event, MouseEvent.MOUSE_UP, True),
 
            _core.etMouseClick:
            etype = Stage._S_DOWN_EVENTS[button]
 
        elif event_type == MouseEvent.MOUSE_UP:
            if button > 2:
                etype = MouseEvent.MOUSE_WHEEL
            self._last_down[button] = click_obj
 
        elif event_type == MouseEvent.MOUSE_UP and button < 3:
            if click_obj == self._last_down[button]:
                evt = MouseEvent._create(Stage._S_CLICK_EVENTS[button],
 
        if event.flags & TouchEvent.efPrimaryTouch:
            self._on_mouse(event, MouseEvent.MOUSE_UP, False)
 
    def _on_touch(self, event, etype, touch_info):