asiekierka / uxnds

NDS/3DS fork/port of the uxn/Varvara virtual machine
MIT License
150 stars 5 forks source link

Input UX - keyboard repeat and Ctrl key? #7

Closed craigcomstock closed 2 years ago

craigcomstock commented 2 years ago

Playing with https://git.sr.ht/~rabbits/left I notice that keys don't auto-repeat on the uxnds keyboard and that I can't seem to do any control sequences like c-o, c-r or c-s to rename/save a file.

Works great otherwise, just need a pen! :O

DeltaF1 commented 2 years ago

I agree that auto-repeat would be nice. I don't know if the on-screen keyboard provided by devkitpro has an auto-repeat feature.

For the control sequences, left is kinda cheating and is interpreting holding the (A) button as holding down the control key, because the desktop implementation maps Control to (A). So you can do the control sequences by holding down the A button on the DS and then typing the key. (i.e. hold A and then type s on the on-screen keyboard)

craigcomstock commented 2 years ago

Odd. Thanks for the tip. Indeed that works. I'll check out devkitpro maybe. Maybe I can add some debugs and figure out https://github.com/asiekierka/uxnds/issues/6

craigcomstock commented 2 years ago

Since the keyboard is from devkitpro I don't see any reason to keep this issue open. Thanks!

craigcomstock commented 2 years ago

FWIW, found the keyboard code in libnds here: https://github.com/devkitPro/libnds/blob/master/source/arm9/keyboard.c