Multiple Keys on Return at First
Posted: Sat May 16, 2009 9:14 pm
I implemented a fixed PIC and have set up the KeyCode Descriptor Table, but I have an error.
I already fixed the keys so that I shouldn't get a repeated (make/break) key, but I do have an issue.
Ok, so as a test right now I just have my OS infinitely call my getKey method and display that character on the screen. It works fine after you enter like three letters, but I get problems during the first part.
As a note when you look at the screenshot, any "unprintable characters" are at the moment being handled by just acting like the '*' character! Keep that in mind.
Any ideas?
(Included a screen shot)
In my screen shot I typed the keys: "hello, world (enter) (enter) what is up?" to show you what it does...
I already fixed the keys so that I shouldn't get a repeated (make/break) key, but I do have an issue.
Ok, so as a test right now I just have my OS infinitely call my getKey method and display that character on the screen. It works fine after you enter like three letters, but I get problems during the first part.
As a note when you look at the screenshot, any "unprintable characters" are at the moment being handled by just acting like the '*' character! Keep that in mind.
Code: Select all
char Keyboard::getChar()
{
char toRet;
while (toRet == keyOp)
{
toRet = readInC(0x60);
}
if (stopRepeat)
{
keyOp = toRet;
stopRepeat = false;
return 0;
}
keyOp = toRet;
stopRepeat = true;
return KEYCODE[toRet-1];
}
(Included a screen shot)
In my screen shot I typed the keys: "hello, world (enter) (enter) what is up?" to show you what it does...