5/3/2023 0 Comments Scummvm ios![]() If this is the bar you see, maybe this guesswork does not work on iOS 15.īut I am actually wondering if it might not be better to have a user option to show or not the input accessory bar instead of some guesswork to show it when there is no physical keyboard and hide it when there is one. So we assume that if this is less than 140 point we can hide the bar. Because when a physical keyboard is connected only the bars are visible, the height of the frame is a lot smaller. Basically it looks at the height of the keyboard frame. The code that matters is at the bottom in prepareKeyboard. They is no API to know if a physical keyboard is connected so, so we have to use some guesswork. ![]() We also try to hide the input accessory bar if a physical keyboard is connected. But not having such a device this is not something I can experiment with myself. Or maybe there is something more that needs to be done. That works on iOS 12 at least, but maybe that matters for iOS 15. And I just noticed that while we do the later, we set leadingBarButtonGroups and trailingBarButtonGroups to an empty array and not to nil. The UITextInputAssistantItem documentation suggests that setting the leadingBarButtonGroups and trailingBarButtonGroups to nil as well as setting the autocorrection type to UITextAutocorrectionTypeNo should hide the bar. If that is the bar you see, we may have an issue with this code. This only works on iOS 9 or above (which is your case) when compiled with the iOS 9.0 or above SDK. In ScummVM we try to always hide the input assistant bar. Can you clarify if you mean one of those two or something else? I have attached screenshots for those two. ![]() In ScummVM we implemented such a bar to have function keys, arrow keys, escape keys and more.
0 Comments
Leave a Reply. |