-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump to a version of SDL
with patches for the TextInput / TextEditing (SDL 2.26.0
)
#2692
Conversation
46c1801
to
89c55a0
Compare
Indeed works really well ! |
Test results:
Screen.Recording.2022-10-23.at.15.20.47.mov |
@mis16 You should upgrade to 2.24.2. It also included a lot of joystick stuff and some opengl fixes. Maybe you can rename this PR with some additional fixes included in the last SDL release version. commit 'a905a7869f18332579ff06ba3f7f3777708a3007' is also included (libsdl-org/SDL@release-2.24.2...main) |
Hi @mp-007! SDL2 release Only specific commits (mainly bugfixes) from the See: libsdl-org/SDL@release-2.24.0...release-2.24.2 and libsdl-org/SDL@release-2.24.0...main The fixes ( and features ) which are needed for the TextEditing with suggestions / IME are not included into the |
sorry my bad. I was checking at the wrong place.... |
Not necessarily, we can target a specific commit into the history or add a patch. |
ok thanks for your time @misl6 For now, I didn't see a specific commit that included all the things I need to fix the open gl es 2 compilation. If I find something I will maybe do a new PR. |
new sdl2 pre-release is out https://github.com/libsdl-org/SDL/releases/tag/prerelease-2.25.1. |
@mp-007 FYI: |
89c55a0
to
e918e10
Compare
Hi, my app is suffering from the problems with the TextInput-bug (backspace + doubling of characters). As far as I understand this can be solved by applying a sdl-patch. Since my app is only for android the problem with libsdl-org/SDL/issues/6558 doesn't concern. Can you please advice me, how to install that patch? Is it a certain adjustment in buildozer.spec? |
Until available in main repository, you can directly use in bulldozer :
|
SDL
with patches for the TextInput / TextEditingSDL
with patches for the TextInput / TextEditing (SDL 2.26.0
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
thx brvier for your tip, but when I applied these changes to buildozer.spec building failed:
Since misl6 apparently has changed something in between, I give it a new try ... |
No - it doesn't work out - while building same error as above and later on:
Is there anything else what is to be considered, if I want to use
? |
Hi @OrangMutan ! The PR has now been merged into (Feel free to reach us on Discord support chat if you need some help) |
Dear @misl6, I just did: p4a.fork = misl6 Everything compiled fine, but the suggestions problem is still there: they are all garbled. What did I miss? You mentioned the develop channel. Can you give me a hint how I can use it? Sorry for dummy questions. |
Hello @misl6! Sounds good, so I did a |
@OrangMutan have you checked that gradlew failed. Or maybe you can send the buildozer.spec file (better to ask on discord) |
Where is the Discord mentioned? |
see link in my comment |
@misl6 kudos to you. However there's one more thing I think needs to be fixed. Actually two. First, the keyboard ought to start with an upper case. I am not so sure about this last issue if it related to this post but I need to say it. Ever since I used this particular branch of p4a, my app keeps switching to landscape mode anytime I rotate my device despite the fact that I set the screen orientation to portrait. |
Uppercase is the normal behavior of the keyboard, depending on keyboard preference of course. Didn't have any strange behavior with rotation here. And input_type null on Android should have suggestion. |
keyboard_suggestions: False But I suggest to let user decide such thing. |
Please, do you mean keyboard suggestions are working fine for you in Kivy? No garbled words and repetitions? If yes, which keyboard do you use and did you build from some develop/pre-release branch of anything? In my Kivy 2.1.0, no keyboard is working normally and I just have to disable keyboard suggestions altogether. |
What I mean is when you open a keyboard, the letters should be in uppercases. Just like when you want to start a sentence, you make the first letter of the first word in the sentence capital letter. If you still don't get me, look at the video you uploaded....you had to press the "cap" button before typing. |
I got you now, thanks |
There's a password textinput in my app and I don't want the suggestions at the top of the keyboard. But setting keyboard suggestions to False and input_type to null isn't hiding the keyboard suggestions. |
Do you (or anybody else here) by chance know how to fix the keyboard suggestions problem right now? Or this is impossible and we just need to wait for the new SDL and/or p4a version? |
Yes, the fix is in this PR and it has been successfully merge. To use, set the p4a.branch in your spec file to develop. |
Do you mean this string? If yes, can you please tell me what exactly should be in it? |
Nope p4a.branch = develop |
ahh… yes I did this a few days ago. It's exactly "p4a.branch = develop". But nothing changed for me. |
but I will try to clean the buildozer directory now |
Oops!!!. Here is what I did before it was merged. p4a.url = https://github.com/misl6/python-for-android.git And now that it is merged I expected it to be in developing branch and using spec below only should work. p4a.branch = develop |
Thanks, it worked! 3 out of 4 keyboards I'm testing work fine. But now another question remains: why is my favorite Microsoft SwiftKey keyboard still now working? I mean no keyboard suggestions. |
Hi everyone, I have some blockers similar to this issue in backspace functionality and keyboard suggestions. We already had discussion in google groups kivy user support. Please find the discussion link here : https://groups.google.com/g/kivy-users/c/yQIuLZPf-jg/m/Be6maQTOCwAJ?utm_medium=email&utm_source=footer . If it's a user code issue, Please guide me how to resolve this. Let me know if it's a kivy platform code issue and if you need anything else from my side :) |
@misl6 Please let me know how to resolve the issue there : https://groups.google.com/g/kivy-users/c/yQIuLZPf-jg/m/Be6maQTOCwAJ?utm_medium=email&utm_source=footer |
…ng (SDL `2.26.0`) (kivy#2692) * Testing: SDL with patches for the new TextInput / TextEditing * Bump to SDL 2.26.0
This is a WIP PR meant for testing a pre-release SDL feature that should fix the following issues:
Edit:
SDL
2.26.0
has been released, and even if it needs a small patch during build-time, works great!The SDL team said that
2.26.1
(which doesn't needremove-extra-include.patch
anymore) is expected to be released in a month.But, considering that we're not targeting anymore a pre-release version, this PR could be considered ready to merge.