Understanding 'KeyXlate' from graphic item 561
Posted: Mon Sep 01, 2008 6:50 pm
As you know, I have started to document the content of the 5 binary items (558 to 562) found in the graphics.dat file of DM and CSB.
I am currently working on item 561 and in the comments from the CSBwin source code, there are "KeyXlate" entries that I don't understand (see here http://dmweb.free.fr/?q=node/1397):
Here are the actual 76 bytes of data in the tables described above:
By examining the CSBwin code, I understand there is some translation occuring from keyboard scan codes to something related to the mouse and a Mouse Queue, but I don't understand exactly what is going on. What is the mouse queue and its purpose? What is exactly translated? What are the scan codes for which there is no comment in the data above?
Any help would be welcome!
I am currently working on item 561 and in the comments from the CSBwin source code, there are "KeyXlate" entries that I don't understand (see here http://dmweb.free.fr/?q=node/1397):
Code: Select all
i8 Byte18448[8]; // KeyXlate swapped when read ...
i8 Byte18440[12]; // KeyXlate swapped when read ...
KeyXlate Byte18428[7];// KeyXlate swapped when read ...
i8 Byte18400[28]; // KeyXlate swapped when read
Code: Select all
00 94 00 1B
00 00 00 00
00 92 00 0D
00 93 00 1B
00 00 00 00
00 01 52 00 52: scan code of the 'Insert' key (Turn left)
00 03 48 00 48: scan code of the 'Up arrow' key (Move forward)
00 02 47 00 47: scan code of the 'Clr/Home' key (Turn right)
00 06 4B 00 4B: scan code of the 'Left arrow' key (Strafe left)
00 05 50 00 50: scan code of the 'Down arrow' key (Move backward)
00 04 4D 00 4D: scan code of the 'Right arrow' key (Strafe right)
00 00 00 00
00 07 3B 00 3B: scan code of the 'F1' key (Select champion 1)
00 08 3C 00 3C: scan code of the 'F2' key (Select champion 2)
00 09 3D 00 3D: scan code of the 'F3' key (Select champion 3)
00 0A 3E 00 3E: scan code of the 'F4' key (Select champion 4)
00 8C 00 13
00 93 00 1B
00 00 00 00
Any help would be welcome!