zoeyjodon / SoftWing

9 stars 0 forks source link

Request info/documentation for making a keyboard? #7

Open Walters-Marissa opened 4 months ago

Walters-Marissa commented 4 months ago

So far your app is the only thing that can control a device from another screen in dual mode. I desperately am hoping to see this extended to keyboard functionality. I can live without it per say but really, the main need I have for LG wing is productivity. it was supposed to be a dirt cheap smartphone option for using excel. Unfortunately, the need to use LG's awful keyboard completely hamstrings the process by not allowing the arrow keys and tab keys to be used at all. I don't expect you to just fix this for free, but I am hoping to ask what is the difference between this app and say, a keyboard? can it not just work similarly?

zoeyjodon commented 4 months ago

The screen swapping logic should actually work the same for both the controller and a software keyboard, the problem is the keyboard you're swapping to needs to have 2 things:

  1. WRITE_SECURE_SETTINGS permissions. Granting these permissions is described in the current controller setup instructions, and should be easy to do for other keyboards.
  2. The ability to take up the whole bottom screen. When I tried adding keyboard swapping as a utility in SoftWing, this was the main thing that blocked me. I could move Gboard to the bottom screen, but the sizing would be so awful that it wasn't really useable.

I think the best possible option would be forking some open source android keyboard and adding the screen swapping and resizing code from SoftWing to it. I think I looked into it a bit, but most android apps are written in Java or Kotlin and I'm not particularly comfortable in those languages.

Walters-Marissa commented 4 months ago

Hacker keyboard would fit the bill the most in my opinion. However i am not sure how it will work. Does the swap work on android 13? One thing i like about hacker keyboard is that it actually allows fine resizing. I guess the other issue would be keypad persistance.

On Fri, May 31, 2024, 6:32 PM zoeyjodon @.***> wrote:

The screen swapping logic should actually work the same for both the controller and a software keyboard, the problem is the keyboard you're swapping to needs to have 2 things:

  1. WRITE_SECURE_SETTINGS permissions. Granting these permissions is described in the current controller setup instructions, and should be easy to do for other keyboards.
  2. The ability to take up the whole bottom screen. When I tried adding keyboard swapping as a utility in SoftWing, this was the main thing that blocked me. I could move Gboard to the bottom screen, but the sizing would be so awful that it wasn't really useable.

I think the best possible option would be forking some open source android keyboard and adding the screen swapping and resizing code from SoftWing to it. I think I looked into it a bit, but most android apps are written in Java or Kotlin and I'm not particularly comfortable in those languages.

— Reply to this email directly, view it on GitHub https://github.com/zoeyjodon/SoftWing/issues/7#issuecomment-2143201516, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWN6OMCBOKMZO5A3UDK5VV3ZFEQEXAVCNFSM6AAAAABISLOCGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTGIYDCNJRGY . You are receiving this because you authored the thread.Message ID: @.***>

zoeyjodon commented 4 months ago

Hacker keyboard would be nice! It's actually what I tried working with before!

Keyboard swapping works on Android 13, but only for keyboards with WRITE_SECURE_SETTINGS permissions.

You mentioning keypad persistence reminds me, you'll need to use a persistent notification to keep a process running that can listen for and handle the screen swapping process. Luckily, I think the hacker's keyboard already has an optional persistent notification to show the keyboard.

Walters-Marissa commented 3 months ago

Fiddling this for a while and it seems like Android hacker keyboard doesn't require those settings and when I try to use the method for softwing it doesn't work. You said you got it working though? How did you do that? The write permissions command didn't work for hackers keyboard and the notification doesn't work while softwing works just fine. I don't understand how to fix it. You mentioned getting it working with this app specifically...

Walters-Marissa commented 3 months ago

Can you add the keyboard swapping feature back to softwings? If it's compatible with hackerkeyboard it should work due to reasonability hotkeys.

Walters-Marissa commented 2 months ago

Hello? You mentioned that you where able to add this functionality already right? But the size wasn't usable. Is there no information you can give me on how you did that?