Giter Site home page Giter Site logo

Comments (3)

cameronaw13 avatar cameronaw13 commented on June 9, 2024

From another project that I'm referencing (gjs-osk), it seems that they use Clutter's events and vfunctions to detect pointer, touch, and event pen events ( BUTTON_PRESS, MOTION, BUTTON_RELEASE, TOUCH_BEGIN, TOUCH_UPDATE, TOUCH_END ) For all 3 event types they use event.get_coords() to find the coordinates for their respective events. Not sure how to implement this within moveHandler.js yet as I have no experience with gjs but I am able to test it using a convertible laptop.

Update: I realized that this suggestion probably wouldn't work with the moveHandler since it deals more with Meta rather than Clutter for input. Maybe there's some way to work it out that eludes me at my current skill level. Would love to see someone help solve this issue as it would increase gnome's compatibility with touch devices.

from tiling-assistant.

cameronaw13 avatar cameronaw13 commented on June 9, 2024

I've been looking around for others' solutions and found that Fly-Pie already created an implementation of what I proposed above. It seems that they use a background modal that captures Clutter input events which is then sent to the menu where some checks are performed before ultimately finding the input's coordinates.

I feel like something of this nature could be implemented within this project if it's able to mesh well with the moveHandler class and Meta.

from tiling-assistant.

Leleat avatar Leleat commented on June 9, 2024

Thanks for the work, I'll look into the other projects. I've wanted to rework the 'moveHandler' at some point. I'll try to get the touch support into it then as well.

from tiling-assistant.

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.