natinusala / borealis

Hardware accelerated, controller and TV oriented UI library for PC and Nintendo Switch (libnx)
Apache License 2.0
260 stars 83 forks source link

Allow users to manage swkbdConfigSetKeySetDisableBitmask #72

Closed H0neyBadger closed 3 years ago

H0neyBadger commented 3 years ago

Hello, I think the borealis embedded swkbd is pretty cool. unfortunately I'm using '/' for my project and this option is locked by default in borealis. https://github.com/natinusala/borealis/blob/d5ba2eabc0b61a85075a37c21469e3cde5c6bae6/library/lib/swkbd.cpp#L65

I would like to propose a PR, but since swkbd flags are only known by the SWITCH version, I do not know how to properly implement this without altering the linux compatibility. do you have any idea on how to proceed ? thank you a lot

natinusala commented 3 years ago

Hey there !

The answer would be to abstract out the swkbd capabilities in a new enum / bitmask, directly in borealis. Then, add a parameter for that in openForText and its friends. Finally, add a way to customize the capabilities on the different ListItems.

H0neyBadger commented 3 years ago

OK I will make a PR for this. Thank you for your guidance.

H0neyBadger commented 3 years ago

thank you a lot