anaseto / boohu

Break Out Of Hareka's Underground, a roguelike game.
https://codeberg.org/anaseto/boohu
ISC License
128 stars 8 forks source link

Suggestion: Key rebinding #12

Open maeln opened 6 years ago

maeln commented 6 years ago

This game is awesome but it would be even more awesome if it was possible to rebind at least the direction keys without having to change the code manually (via a config file for example) :) .

anaseto commented 6 years ago

This would be a good thing indeed. For better accessibility, I think it would be better to be able to do this during the game, without editing manually a config file. I'll have a look into this.

Thanks for the suggestion!

anaseto commented 6 years ago

First attempt! Still needs some testing, probably. If new keys are added to the game between releases, I suppose configuration might need a reset, not sure how to deal with this though, other than trying to be backwards compatible whenever possible.

maeln commented 6 years ago

I will try asap and give you feedback :) .

maeln commented 6 years ago

The key rebinding work perfectly with my Mac Azerty keyboard :) . I noticed that for now there is no persistence and that the help menu still display the default value, but I suppose it was already planned.

anaseto commented 6 years ago

The thing with the help menu is that the mouvement entry is « artistic », and some entries were ordered in a way I thought more intuitive but not alphabetic. Moreover, the help talks about the mouse too in some entries, so I left it for later (now it displays « Default Keys » instead of « Keys » if there has been some customization). Keeping the issue open until I manage a satisfactory solution for this.

Thanks for testing!