Giter Club home page Giter Club logo

Comments (17)

hseiken avatar hseiken commented on May 22, 2024 2

Yes, input successfully switches between the two, arrow keys work, shift+arrow to select multiple lines works. The previous problem of the software keyboard still persists, but BT keyboard does connect and disconnect and enter text, even after sleep/app switching. FKeys work, etc. American keyboard layout and android system.

from tic-80.

trelemar avatar trelemar commented on May 22, 2024 1

I can test this when I get home. I have a similar setup to @hseiken, Galaxy tab 4 and Bluetooth keyboard.

from tic-80.

trelemar avatar trelemar commented on May 22, 2024 1

Here's a video explaining exactly what I'm experiencing: https://youtu.be/WTj2O6Rago4 hope that helps.

from tic-80.

hseiken avatar hseiken commented on May 22, 2024

Using galaxy tab 4 with BT keyboard and mouse creates issue where pushing 'z' locks button 1. It's indicated on screen as always triggered. As well, the onscreen keyboard doesn't respond well, requiring super fast double tap 'back' to trick the keyboard to say off screen, which then allows user to push the 'back' button mapped to ESC to switch between code and shell.

Everything else works, though. However, with the buttons stuck using keyboard and mouse when testing games, it's not usable since every test play requires restarting the entire software to fix the stuck button.

from tic-80.

hseiken avatar hseiken commented on May 22, 2024

New bug (with workaround). On android, using virtual keys (gboard or in my case "HackerKeys" app), when the app goes to sleep and is brought back into focus, the keyboard doesn't work. To get around this, if you're on the code view, switching to other menus (i.e. sprite or map editors) then back to the code will reset the keyboard to work again. Likewise, if you are in the console, mashing BACK button on your device a couple of times to get to the code section to do the menu change will allow the keyboard app to connect back into TiC.

Currently, bluetooth state changes still crash TiC, so it's still not quite useable with real keyboard yet.

from tic-80.

nesbox avatar nesbox commented on May 22, 2024

@hseiken I found a solution for BT keyboard https://forums.libsdl.org/viewtopic.php?t=12292&sid=8174f986c4bd1d2cb9ac5b5293221ba4 and made fix
could you pls test it, because unfortunately I don't have BT keyboard to check

tic.zip

from tic-80.

nesbox avatar nesbox commented on May 22, 2024

Great, waiting for results :) ...

from tic-80.

hseiken avatar hseiken commented on May 22, 2024

It works, no crashing from BT connect/disconnect. Nice one. :)

from tic-80.

nesbox avatar nesbox commented on May 22, 2024

Does text input work from your BT keyboard?

from tic-80.

nesbox avatar nesbox commented on May 22, 2024

Well, I'm going to add touch button to show/hide software keyboard or smth else...

from tic-80.

nesbox avatar nesbox commented on May 22, 2024

I made a fix for software keyboard on Android version, keyboard shows on startup and when you touch screen in portrait mode, landscape mode works without screen keyboard

you can check
tic_soft_keyboard_fix.zip

closing on .19

from tic-80.

nesbox avatar nesbox commented on May 22, 2024

I forgot to check BT keyboard support, reopen...

from tic-80.

trelemar avatar trelemar commented on May 22, 2024

This method works great before you switch apps, after that I cannot get the keyboard to come up at all. This seems to only happen with hackers keyboard and not gboard. Also, TIC sometimes crashes when returning to the app after being in the background. I never had it do that with .18

from tic-80.

nesbox avatar nesbox commented on May 22, 2024

@trelemar thanks for intelligible explanation, I think the problem is inside SDL lib I used in the TIC project
so, I made another one fix, pls test
tic_android_kb_fix.zip

from tic-80.

trelemar avatar trelemar commented on May 22, 2024

Played with it for 5 minutes after installing that version and could not reproduce the issue. Awesome work :) Almost time for a 0.19.0 release eh? :D

from tic-80.

hseiken avatar hseiken commented on May 22, 2024

I can say it's working 95% as expected. It's not 'fast' to detect changes in keyboard types, but I haven't had to restart/restore or anything like that to switch between BT and soft keys. Works well! I tested by typing with soft keys, turning on bt, typing with it, going into running cart, then to edit, take off bt keyboard then bring up soft keys then bt again. Everything works.

from tic-80.

nesbox avatar nesbox commented on May 22, 2024

perfect!
thanks to all
closing on .19

from tic-80.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.