Re: Support of Joystick/Gamepad in GTK+ 3.18
- Date: Sun, 17 Jan 2016 12:18:33 +0530
- From: Samik Ganguly <sganguly87@xxxxxxxxx>
- Subject: Re: Support of Joystick/Gamepad in GTK+ 3.18
Thanks for clearing that up. I was under the impression that SDL
would interfere with mouse and keyboard handling of GTK+, but looks like
one can initialize a specific SDL subsystem like SDL_INIT_JOYSTICK. Also
as you said mouse and keyboard events are multiplexed, so GTK+ and SDL
should both receive them but I just have to ignore them inside SDL. The
challenge here, I think, is to initialize SDL inside a GTK+ widget. I'll
get back if I can successfully do that, or encounter a problem doing it.
I hope it'll still be relevant although it'll have some SDL topic in it.
On Saturday 16 January 2016 11:16 PM, Jasper St. Pierre wrote:
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
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,
gtk-list mailing list
gtk-list mailing list