Comments (17)
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.
I can test this when I get home. I have a similar setup to @hseiken, Galaxy tab 4 and Bluetooth keyboard.
from tic-80.
Here's a video explaining exactly what I'm experiencing: https://youtu.be/WTj2O6Rago4 hope that helps.
from tic-80.
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.
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.
@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
from tic-80.
Great, waiting for results :) ...
from tic-80.
It works, no crashing from BT connect/disconnect. Nice one. :)
from tic-80.
Does text input work from your BT keyboard?
from tic-80.
Well, I'm going to add touch button to show/hide software keyboard or smth else...
from tic-80.
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.
I forgot to check BT keyboard support, reopen...
from tic-80.
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.
@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.
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.
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.
perfect!
thanks to all
closing on .19
from tic-80.
Related Issues (20)
- Does not recognize gamepad HOT 1
- Sometimes can't execute the first command after launch (keyboard input weirdness) HOT 1
- [Question] How i can compile TIC-80 as a Libretro core for Nintendo Wii? HOT 1
- [libretro] minimap arrows are wrong direction HOT 2
- [linux] Shadows Over the Twelve Lands crashes in latest Arch build HOT 2
- Android: TIC80 (PRO) not showing virtual gamepad every second run HOT 3
- Associate .tic files with TIC-80 on macOS
- TIC-80 doesn't start properly on Windows XP unless forced to `--soft` HOT 1
- New release soon / more frequent releases? HOT 3
- The "X button to enter surf" needs a better input check HOT 6
- Better import screen error messages HOT 1
- Tiles in map editor does not update after editing tile HOT 1
- Scaling issue on web export on mobile
- Native Apple Silicon version and Black Borders
- `--fs` accepts files, not just folders; errors follow
- Command line not fully visible when using past commands
- [Libretro] iOS support HOT 2
- Using surf, 'close game' should go back to surf and not console
- Mouse sprite and ram aren't linked
- keyword 'of' in javascript is not colored
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tic-80.