Author
| row 8 of keyboard
|
flyguille msx master Posts: 1225 | Posted: August 09 2008, 22:33   |
I wrote a general description of the issue involved on programming a emulation of msx keyb, because I don't understand ¿what is the issue?
|
|
wouter_ msx novice Posts: 20 | Posted: August 10 2008, 10:12   |
@flok: I checked the source code of your emulator. It seems you modify the keyboard matrix in the read_keyboard() function (when port #A9 is read). This is wrong, reading port #A9 only queries the current status, it doesn't change the matrix in any way. In your check_keyboard() function you should also listen to SDL_KEYUP events, only those events should clear keys from the keyboard matrix.
Feel free to join #openmsx on irc.freenode.net, to discuss this in more detail (or other emulator related topics).
|
|
AuroraMSX
 msx master Posts: 1263 | Posted: August 10 2008, 11:12   |
Quote:
| Keep in mind that keyboard is scanned every INT by BIOS
|
Actually, the BIOS only scans the keyboard on every 3rd int. |
|
flok msx novice Posts: 25 | Posted: August 12 2008, 22:46   |
bug fixed! it was acutally the button of the joystick being constantly pressed due to wrong joystick emulation
|
|
|
|
|