MrZammler / iGame

iGame is a simple frontend for launching whdload games.
GNU General Public License v3.0
85 stars 17 forks source link

Add joystick navigation #16

Closed midwan closed 6 years ago

midwan commented 6 years ago

We should add joystick navigation (e.g. joystick up/down and Fire launches a game)

MrZammler commented 6 years ago

This would be nice.

I had some code on a side project (iGameLight, that would be like x-bench, but never got around to make anything usefull - I'll uploade the source), but had joystick support. Left/right would go through the letters and up/down the list.

midwan commented 6 years ago

@MrZammler That sounds great! We should be able to re-use parts of that, I guess. Was that also MUI-based?

MrZammler commented 6 years ago

No toolkit. Just a custom PAL screen with some text. :-)

midwan commented 6 years ago

@MrZammler Did you use a system-friendly way to detect joystick input? I was looking at lowlevel.library as one approach, but I'm not very excited about the way it does it (constantly polling). I was wondering if there's a better way...

wepl commented 6 years ago

AFAIK you can use gameport.device to get input events. But lowlevel.library is probably simpler to implement.

MrZammler commented 6 years ago

Yes, I used the gameport.device to get events. I've uploaded the scrap source from iGameLite here: https://github.com/MrZammler/iGameLite

midwan commented 6 years ago

@wepl thanks for the suggestion @MrZammler great, that will help a lot to implement this! Thanks!