Web lists-archives.com

Re: Support of Joystick/Gamepad in GTK+ 3.18




Hey.

So, joypad support is usually special. Most other input devices are
usually demultipliexed through concept of "window focus" (e.g.
keyboard input goes to the window focus, mouse input goes to the
window the mouse is currently over), but joypad is usually exclusively
controlled by one app at a time.

That means it doesn't tend to be proxied through the window system
directly, and so there's no need for GDK to interpret it. GTK+ and GDK
don't interpret joypads, and I can't imagine they'll do so any time
soon. If you want, you might be able to use SDL's input library to
handle gamepads in your game, in combination with GTK+.

Does that help answer your questions?

On Thu, Jan 14, 2016 at 3:47 AM, Samik Ganguly <sganguly87@xxxxxxxxx> wrote:
> Hello GTK+ developers,
>     I have a few questions about GTK+ input support. I understand GTK+ is
> cross-platform GUI toolkit and have support for several input device like
> mouse, keyboard and touch. I want to know
>
> does GTK+ 3.18 support Joystick functionalities like axes, haptics and
> multiple joysticks.
> If not, how can I override the input subsystem of GTK+ to extract only
> joystick events to handle them from a different library which might have
> support for this?
> does GTK+ derive input support from underlying windowing system? In that
> case if the underlying windowing system(such as X11) doesn't support
> joysticks can I still integrate it with GTK+(e.g. through evdev)?
>
> Thank you for support,
> Samik
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list@xxxxxxxxx
> https://mail.gnome.org/mailman/listinfo/gtk-list
>



-- 
  Jasper
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list