Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
While testing my key-handlers under a windows build of bochs, I've found out I never get a break-code for either of the Enter keys (the big one and the keypad one).
I've already checked it under 4 other windows emulators, and everything worked just fine there- break-code received for both keys.
Surprisingly, a linux build of bochs worked fine too, so my question is, could this just be a windows-bochs (specific to my machine?) bug, or do I have an actual reason to worry?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
I actually get a strange keyboard quirk on bochs for the capslock key, but not the enter key. (I get both make & break scancodes sent on keydown AND keyup!)
switch (scancode)
{
case CAPSLOCK: // TODO: fix capslock. Both a make and break scancode are sent on keydown AND keyup!
if (bKeypress)
m_bCapslock = !m_bCapslock;
return 0;
case LSHIFT:
case RSHIFT:
if (bKeypress)
m_bShift = true;
else
m_bShift = false;
return 0;
case CTRL:
if (bKeypress)
m_bCtrl = true;
else
m_bCtrl = false;
return 0;
}