GAMELEGEND 2020-05-09 14:05 (Edited)
Playing a game with a keyboard instead of playing with a gamepad can be fun
But i have tried so many different things and i am starting to think there is no way to play with a keyboard like you can in the web player
The only way i can think of is they press a button but then they keep moving in that direction until they press a different button
But is there a way to make it were if they release the the key they stop moving in that direction
Timo 2020-05-09 21:57
I don’t really understand what you mean... you have to press the arrow key again to stop moving? It shouldn’t be like this.
GAMELEGEND 2020-05-09 22:03 (Edited)
I have another way to say it
The only idea i had was lets say the player press W they will keep going up until they press A or S or D
My question is is there a way to make them stop moving up when they release the W key
I dont think there is a way to do this i have tried tons of things
Seba06 2020-05-09 23:20
I did some experimenting but it seems it’s impossible to know if a key is currently pressed
was8bit 2020-05-10 05:33
Apple 2e keyboard could not only know if a key was currently pressed, it could detect this for multiple combination of keys... ibm computer keyboards only detected last key pressed... i am talking about old school original physical keyboards...
was8bit 2020-05-10 05:39 (Edited)
I think the reason holding down a key is not recognized as such because holding down some keys for a second will pop open a small menu with other options for that key...
was8bit 2020-05-10 05:41
Additionally, NX only records the LAST key pressed, and has no recognition of any current key held status
was8bit 2020-05-10 05:43
If you need a held down status for gameplay, you have 2 options...
1) use gamepad, as all 4 arrows and AB buttons offer current held status
2) use touchscreen, as it offers the same current held touch status as well...
was8bit 2020-05-10 05:46
I understand using keyboard for gameplay, in original lowres I made a few game where the top keys fires or aimed at those specific points on the screen above.. this offered quick precise aiming, but the keyboard didnt aligne identically for all devices...
was8bit 2020-05-10 05:47
Another big issue i have using ipad keyboard is 1) it causes the screen to shrink and 2) if you go back and forth from keyboard on off on off, it makes my head dizzy with the screen popping big small big small...
Timo 2020-05-10 11:23
Ok, now I understand. I thought you meant using the keyboard in games working with GAMEPAD. So you are talking about INKEY$ basically.
All the input was made with compatibility between computers and mobile in mind. The on-screen keyboards on mobile phones don't give you the information if a key is currently pressed, only if they were just pressed. So this is why LowRes NX has the same limitation.
Seba06 2020-05-10 11:50
It’s possible to use INKEY to add extra buttons to a game, i think making a game based around that would be really cool. However, it is impossible to make a gamepad with the keyboard or use INKEY alongside gamepad. The gamepad made with keyboard is impossible because LowRes only stores a letter once you let go of it, hence “last pressed key”.
nathanielbabiak 2020-05-15 17:23 (Edited)
I understand the intent of what GAMELEGEND is getting at. Is this the desired behavior, or is a bug-fix possible?
When using the iPad LowRes NX app and also using the Logitech Slim Folio keyboard case, the INKEY instruction only returns the key when *initially* depressed. And, if a key is held down a long time, the keyboard never repeats the key so the INKEY instruction returns a value only once.
However, when using the iPad Safari app and also using the Logitech Slim Folio keyboard case, the keyboard repeats, and the INKEY instruction returns a value each time the keyboard repeats.
So if you're playing a keyboard game on an iPad, just use the Safari app rather than the LowRes NX app, and you'll get repeated keys.
The behavior described above can be verified with this upload: https://lowresnx.inutilis.com/topic.php?id=825
(Obviously an on-screen, software keyboard won't be able to repeat keys. Timo's response above mentions that.)