So we press F1. Ever just wanted to see F1 displayed instead of: Chr$(0) + ;
Well now you can. Hey it was either that or buy you guys a Popeil Pocket Fisherman for X-mas.
Anyway, it works with the key combos available in INKEY$, too. The guts can are good for conversion uses, which funnily enough I had one of those that I backward engineered to make this demo.
Edit: Forum messed up some ascii characters, so I redid it using the QB64 IDE Export feature and that failed miserably, too.
So if only we had a forum that wouldn't MUCK UP a perfectly good code block without switching ascii characters like turning F's into M's... Oh wait, we do!
https://www.tapatalk.com/groups/qbasic/l...ml#p214281 Literal Inkey$ Code.
Pete
PS I'll add a zip file later; right now I'm too kissed, opay?
Edit: Zip added. Two files. One with string characters, and one with string 'numbers'.
Now two issues, What sucks about GLUT is Ctrl + J and Ctrl + Enter both return Chr$(10) with Inkey, and if I used _KeyHit both would return Chr$(13). So when we press Ctrl + Enter its going to display Ctrl + J. Also, both Inkey$ and _KeyHit return like values for Ctrl + Delete and Ctrl + Backspace, so we have a key duplication error there as well. Everything else should display correctly, if not, it's a bug... I mean a feature!
Pete
Well now you can. Hey it was either that or buy you guys a Popeil Pocket Fisherman for X-mas.
Anyway, it works with the key combos available in INKEY$, too. The guts can are good for conversion uses, which funnily enough I had one of those that I backward engineered to make this demo.
Edit: Forum messed up some ascii characters, so I redid it using the QB64 IDE Export feature and that failed miserably, too.
So if only we had a forum that wouldn't MUCK UP a perfectly good code block without switching ascii characters like turning F's into M's... Oh wait, we do!
https://www.tapatalk.com/groups/qbasic/l...ml#p214281 Literal Inkey$ Code.
Pete
PS I'll add a zip file later; right now I'm too kissed, opay?
Edit: Zip added. Two files. One with string characters, and one with string 'numbers'.
Now two issues, What sucks about GLUT is Ctrl + J and Ctrl + Enter both return Chr$(10) with Inkey, and if I used _KeyHit both would return Chr$(13). So when we press Ctrl + Enter its going to display Ctrl + J. Also, both Inkey$ and _KeyHit return like values for Ctrl + Delete and Ctrl + Backspace, so we have a key duplication error there as well. Everything else should display correctly, if not, it's a bug... I mean a feature!
Pete

