Giter Site home page Giter Site logo

Comments (7)

J7mbo avatar J7mbo commented on July 17, 2024 2

Looks this this issue will solve this.

from glfw.

J7mbo avatar J7mbo commented on July 17, 2024

It looks like this is only for v3.4. So I guess my request is actually about supporting version v3.4. I'll change the title of the issue.

from glfw.

J7mbo avatar J7mbo commented on July 17, 2024

Additionally, it's probable that supporting an entirely new version would be a tonne of work and it's not fair for me to request this just for a single window hint.

However would a maintainer / supporter be willing to suggest or advise here were I to attempt to do this myself, just for a single window hint, by following the patterns set by this library for the other versions?

Maybe the PR could even begin the work for supporting v3.4 and if it's not complicated I could contribute with the rest if it's just "passthrough" function calls. :)

from glfw.

J7mbo avatar J7mbo commented on July 17, 2024

Closing as it looks like this isn't interesting for anyone. I'll figure out another way.

from glfw.

DownloadableFox avatar DownloadableFox commented on July 17, 2024

Sorry if I shouldn't be typing here considering it's closed, I tried to reach you out on Twitter but it seems you don't have DMs enabled. I have been experiencing the same issue with a personal project that I have pause whilst waiting for the release of GLFW 3.4. I was looking to use the GLFW_MOUSE_PASSTHROUGH but of course, it is not yet available.

I was wondering if you have found any alternative to this so far?

from glfw.

J7mbo avatar J7mbo commented on July 17, 2024

Hey @DownloadableFox, nope not found anything else yet. Just waiting for this MR. There's no instructions there that I can see yet as I'm on a Mac.

I'll re-open as it's being actively worked on.

from glfw.

J7mbo avatar J7mbo commented on July 17, 2024

Okay I got this working.

I checked out Geo25ray's master branch which has 3.4 changes in.

Then in testdata/customcursor/main.go I commented out the line window.SetIcon(), because this wasn't working on Mac. Maybe it works for you if you're not using a Mac.

Then in the Hints area at the top of window.go, directly under floating, I added the new hint:

MousePassthrough Hint = C.GLFW_MOUSE_PASSTHROUGH

Finally in customcursor/main.go I added:

window.SetAttrib(glfw.MousePassthrough, 1)
window.SetAttrib(glfw.Floating, 1)

And mouse pass through worked! :)

from glfw.

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.