GUI with good keyboard/gamepad support?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
nolan
Prole
Posts: 2
Joined: Sat Apr 06, 2019 11:15 pm

GUI with good keyboard/gamepad support?

Post by nolan »

Hey folks, building my first Love game and it's going fairly well so far. Now I'm looking for a good GUI system, and keyboard support is essential for me. Gamepad support would be nice too, but should follow nicely from keyboard support.

I'm fairly new to Lua. I've looked through every UI I've found on the wiki and Awesome list, but either I can't find anything with good keyboard support or I don't know what I'm looking at.

I define good keyboard support as the ability to tab/arrow through UI elements and to manipulate them with the keyboard. I'd also like something with at least menus, buttons, and sliders.

Does anything out there provide this support?

If not, is there a UI option that would probably be a better fit? I imagine I'll have to hack in my own keyboard handlers in love.keypressed and such. I started attempting this with LoveFrames by manually moving the mouse into the click bounds of UI elements to trigger hover behavior, but I'm having some issues where menu dimensions don't appear to get set, which I may post about in another thread. There are so many UI options and I'm not knowledgable about which is the most advanced or well-maintained, so any pointers would be helpful. Nuklear doesn't appear to have any keyboard support at all, and I suspect that would be true of most immediate-mode UIs (or, at least, I wouldn't be able to monkeypatch keyboard support to fill any gaps.)

Thanks for the help.
User avatar
pgimeno
Party member
Posts: 3656
Joined: Sun Oct 18, 2015 2:58 pm

Re: GUI with good keyboard/gamepad support?

Post by pgimeno »

I think Luigi meets the requisites. Not sure of the current status of it though. Edit: It seems updated to 11.1.
User avatar
CrimsonGuy
Prole
Posts: 48
Joined: Thu Apr 04, 2019 3:32 pm

Re: GUI with good keyboard/gamepad support?

Post by CrimsonGuy »

I'd been using love-nuklear this last few days and it seems super nice and complete.

The binding for Love
https://github.com/keharriso/love-nuklear
The original repo in C you can check images of what the library is capable of to.
https://github.com/vurtun/nuklear/tree/ ... b844e613b6
User avatar
keharriso
Party member
Posts: 109
Joined: Fri Nov 16, 2012 9:34 pm

Re: GUI with good keyboard/gamepad support?

Post by keharriso »

CrimsonGuy wrote: Sun Apr 07, 2019 8:38 pm I'd been using love-nuklear this last few days and it seems super nice and complete.

The binding for Love
https://github.com/keharriso/love-nuklear
The original repo in C you can check images of what the library is capable of to.
https://github.com/vurtun/nuklear/tree/ ... b844e613b6
Thanks for the praise, but love-nuklear doesn't do keyboard/gamepad support very well. You'd have to roll your own support by editing the nuklear source code or making complicated custom widgets. This issue describes the problem (zahnrad is the old name for nuklear).
Last edited by keharriso on Sun Apr 07, 2019 11:13 pm, edited 1 time in total.
LÖVE-Nuklear - a lightweight immediate mode GUI for LÖVE games
nolan
Prole
Posts: 2
Joined: Sat Apr 06, 2019 11:15 pm

Re: GUI with good keyboard/gamepad support?

Post by nolan »

pgimeno wrote: Sun Apr 07, 2019 6:22 pm I think Luigi meets the requisites. Not sure of the current status of it though. Edit: It seems updated to 11.1.
Yes, so far it's working well! Thanks, I'd seen Luigi but was kind of suffering from UI evaluation fatigue at that point. I now have my basic UI in place, and keyboard navigation seems to be working more closely to what I'd like.
User avatar
CrimsonGuy
Prole
Posts: 48
Joined: Thu Apr 04, 2019 3:32 pm

Re: GUI with good keyboard/gamepad support?

Post by CrimsonGuy »

keharriso wrote: Sun Apr 07, 2019 9:49 pm
CrimsonGuy wrote: Sun Apr 07, 2019 8:38 pm I'd been using love-nuklear this last few days and it seems super nice and complete.

The binding for Love
https://github.com/keharriso/love-nuklear
The original repo in C you can check images of what the library is capable of to.
https://github.com/vurtun/nuklear/tree/ ... b844e613b6
Thanks for the praise, but love-nuklear doesn't do keyboard/gamepad support very well. You'd have to roll your own support by editing the nuklear source code or making complicated custom widgets. This issue describes the problem (zahnrad is the old name for nuklear).
Lol didnt notice you were the one behind love-nuklear, guess ill have to pay more attention to usernames from now on, great job with the library.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 5 guests