FlorianRhiem / pyGLFW

Python bindings for GLFW
MIT License
233 stars 36 forks source link

Mouse and key events not registered in RPi 5 #81

Closed Gostas closed 1 month ago

Gostas commented 1 month ago

I am using a Raspberry Pi 5 (aarch64-linux) with Wayland. As title says, mouse and key events are not registered when creating a window.

I compiled glfw 3.4 from source and replaced python3.10/site-packages/glfw/wayland/libglfw.so which solved the problem.

Let me know if I can provide any more details to debug this.

FlorianRhiem commented 1 month ago

Hey @Gostas,

this could potentially be a bug in GLFW 3.3 that is fixed by GLFW 3.4. As described in https://github.com/FlorianRhiem/pyGLFW/issues/77, I cannot build the wheels with GLFW 3.4 due to build issues.

Instead of replacing the libglfw.so in the site-packages directory, you can also use the environment variable PYGLFW_LIBRARY to point pyGLFW to the GLFW library, or place it in one of the paths searched by LD_LIBRARY_PATH.

I hope this helps!

Gostas commented 1 month ago

Ok thanks!