windows&bochs keyboard quirk

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.
Post Reply
yakujabi
Posts: 12
Joined: Mon Feb 25, 2008 11:16 pm

windows&bochs keyboard quirk

Post 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 :)
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

strange, I do get breaks for enter keys.


Have you got the latest version (2.3.x)
"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 ]
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post 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;
  }

yakujabi
Posts: 12
Joined: Mon Feb 25, 2008 11:16 pm

Post 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)... :-k
yakujabi
Posts: 12
Joined: Mon Feb 25, 2008 11:16 pm

Post 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?
Post Reply