[GTK4] Joystick for scrolling

I have an Xbox 360 controller which I want to use for scrolling in a ScrolledWindow.
To work with the joystick, there is a libmanette.
I found EventControllerScroll but I can’t find how to create a scroll event and pass it to the controller.
Or do I have to handle joystick events and directly change the value in GtkAdjusdtment?

Yes; you don’t create events but you can change the adjustment value.

One problem here is you won’t get kinetic scrolling though, but you probably don’t need it for analog sticks anyway.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.