Code Monkey home page Code Monkey logo

Comments (3)

gadielisawesome avatar gadielisawesome commented on September 24, 2024

This does do the exact same thing for me.

from osu-framework.

Susko3 avatar Susko3 commented on September 24, 2024

Since SDL is used for input handling on iOS, and SDL_TouchFingerEvent doesn't seem to have a notion of canceling an event. This should be reported first to upstream, preferably with verbose SDL_HINT_EVENT_LOGGING enabled.

I know that Android has a similar notion of canceling motion events. And the same thing could apply to desktop: the window loosing focus when a mouse button is held (via alt-tab or another app coming to the foreground).

Not sure what's the best way to implement in o!f. On a high level, if a touch up input is cancelled, it shouldn't fire a ClickEvent. The touch/mouse up event should still fire so it doesn't get stuck in a down state.

from osu-framework.

frenzibyte avatar frenzibyte commented on September 24, 2024

A good start would be to implement a "Cancelled" state to button input events, which "MouseButtonEventManager" uses as an indicator to not fire a click event while still firing a mouse up event.

That would also replace an existing flag in that class that works similarly (used in hold-for-right-click logic).

from osu-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.