08-12-2004, 10:22 PM
Pages: 1 2
08-13-2004, 03:22 AM
Why can't you just call KbhOff, get the input and then call KbhOn?
08-14-2004, 01:28 AM
i tried doing that, but the keyboard didn't do anything...mayb its how i have everything setup.....
but anyways, qbasic's INKEY$ is slow and pathetic, so i'd prefer another method.
Oz~
but anyways, qbasic's INKEY$ is slow and pathetic, so i'd prefer another method.
Oz~
08-14-2004, 02:12 AM
Use FutureLib's key handler and build an array for scancode -> ascii code conversion.
08-14-2004, 04:15 AM
And how would i go about implimenting it?
Oz~
Oz~
08-14-2004, 07:02 AM
I just did it, and it's a pain in the butt. First, you have to make a file of all the scancodes and the corresponding ASCII character. Then, you have to create an array, like DRV said and load the indexed scancodes into the array. I just made a function called DumbKey$ that loops through the total number of scancodes until GetKey matches it. When it matches, it returns DumbKey$ as the character. I would reccomend using another method. To me, this way is alot worse than inkey$.
08-14-2004, 07:09 AM
Happy Bday Dr. Daveneinstein!
08-14-2004, 02:27 PM
Yay! Happy birthday
08-16-2004, 05:27 PM
Dr_Davenstien, I've already tried this method, and it slowed the program down alot. If anyone has access to futurelibs source, can u tell me where abouts in memory the keyhandler is...then i could just steal that and easily create a INKEY$ function.
Happy B-day to u, again...lol
Oz~
Happy B-day to u, again...lol
Oz~
08-17-2004, 10:52 AM
Quote:Dr_Davenstien, I've already tried this method, and it slowed the program down alot. If anyone has access to futurelibs source, can u tell me where abouts in memory the keyhandler is...then i could just steal that and easily create a INKEY$ function.
Happy B-day to u, again...lol
Oz~
Err, you'd have to know ASM to convert their code. Dr. D's ways is the practical one.
Pages: 1 2