Page 1 of 1
windows&bochs keyboard quirk
Posted: Mon Feb 25, 2008 11:26 pm
by yakujabi
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?
thanks in advance
Posted: Tue Feb 26, 2008 6:37 am
by Combuster
strange, I do get breaks for enter keys.
Have you got the latest version (2.3.x)
Posted: Tue Feb 26, 2008 6:51 am
by JamesM
Hi,
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!)
Code: Select all
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;
}
Posted: Tue Feb 26, 2008 9:51 am
by yakujabi
Combuster wrote:strange, I do get breaks for enter keys.
Have you got the latest version (2.3.x)
Yep, i'm using 2.3.6
I've tried it on another windows machine- still no breaks, so it could be a problem with my code.
But then again, it did run flawlessly on a linux build of the same version of bochs (and a grand total of 5 other emulators)...
Posted: Tue Feb 26, 2008 10:34 pm
by yakujabi
I've found a thread in this forum asking about the exact same problem, but it's old and empty
Did anyone else ever have this problem?