mackalex / pi-control-frontend

0 stars 0 forks source link

Custom Keyboard? #21

Open alexhutman opened 3 weeks ago

alexhutman commented 3 weeks ago

Description:

We want a custom keyboard so users can toggle Ctrl, Alt, and other modifier keys. We will only get customization this fine-grained if we write native code. Therefore, we have some subtasks ahead of us before we can wrangle this one:

Tasks:

  1. Create new Issues for each item below
  2. Settle on new protocol if we are to be using raw keycodes
    • This includes figuring out the specifics of handling other languages. To my knowledge, if we use keycodes, all language bases would be covered. The native keycode would be easy to pass along, the problem lies in changing the locale (afaik). This would need to happen dynamically and ideally, quickly
  3. Figure out how to split codebase into iOS- and Android-specific sections
  4. Create custom keyboard on Android
    1. Recreate default keyboard perhaps, then we can iterate from there?
    2. Alternatively, we can plan out exactly how we want it. This could introduce unnecessary complexity
  5. Do the same on iOS (less of a priority since no one has access to XCode)
  6. Figure out how to emit native keyCodes (if even possible? perhaps with the lib linked below?)

Resources: