mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fixed keyboard scancode maps for US keyboards
svn path=/trunk/; revision=2560
This commit is contained in:
parent
26c5adcb95
commit
b51e21217f
1 changed files with 58 additions and 54 deletions
|
@ -79,8 +79,10 @@ SCANTOASCII ucScanToAscii_US[]=
|
||||||
{45,'x'},{46,'c'},{47,'v'},{48,'b'},
|
{45,'x'},{46,'c'},{47,'v'},{48,'b'},
|
||||||
{49,'n'},{50,'m'},{2,'1'},{3,'2'},
|
{49,'n'},{50,'m'},{2,'1'},{3,'2'},
|
||||||
{4,'3'},{5,'4'},{6,'5'},{7,'6'},
|
{4,'3'},{5,'4'},{6,'5'},{7,'6'},
|
||||||
{8,'7'},{9,'8'},{10,'9'},{11,'0'},{12,'ß'},
|
{8,'7'},{9,'8'},{10,'9'},{11,'0'},{12,'-'},
|
||||||
{0x39,' '},{0x35,'-'},{0x34,'.'},{0x1b,'+'}
|
{0x39,' '},{0x35,'/'},{0x34,'.'},{0x1b,']'},
|
||||||
|
{0x1a,'['},{0x33,','},{0x27,';'},{0x0d,'='},
|
||||||
|
{0x2b,'\\'},{0x28,'\''},{0x29,'`'}
|
||||||
};
|
};
|
||||||
|
|
||||||
SCANTOASCII ucShiftScanToAscii_GER[]=
|
SCANTOASCII ucShiftScanToAscii_GER[]=
|
||||||
|
@ -109,10 +111,12 @@ SCANTOASCII ucShiftScanToAscii_US[]=
|
||||||
{32,'D'},{33,'F'},{34,'G'},{35,'H'},
|
{32,'D'},{33,'F'},{34,'G'},{35,'H'},
|
||||||
{36,'J'},{37,'K'},{38,'L'},{44,'Z'},
|
{36,'J'},{37,'K'},{38,'L'},{44,'Z'},
|
||||||
{45,'X'},{46,'C'},{47,'V'},{48,'B'},
|
{45,'X'},{46,'C'},{47,'V'},{48,'B'},
|
||||||
{49,'N'},{50,'M'},{2,'!'},{3,'\"'},
|
{49,'N'},{50,'M'},{2,'!'},{3,'@'},
|
||||||
{4,'@'},{5,'$'},{6,'%'},{7,'&'},
|
{4,'#'},{5,'$'},{6,'%'},{7,'^'},
|
||||||
{8,'/'},{9,'('},{10,')'},{11,'='},{12,'?'},
|
{8,'&'},{9,'*'},{10,'('},{11,')'},{12,'_'},
|
||||||
{0x39,' '},{0x35,'?'},{0x34,':'},{0x1b,'*'}
|
{0x39,' '},{0x35,'?'},{0x34,'>'},{0x1b,'}'},
|
||||||
|
{0x1a,'{'},{0x33,'<'},{0x27,':'},{0x0d,'+'},
|
||||||
|
{0x2b,'|'},{0x28,'\"'},{0x29,'~'}
|
||||||
};
|
};
|
||||||
|
|
||||||
////////////////////////////////////////////////////
|
////////////////////////////////////////////////////
|
||||||
|
@ -1979,10 +1983,10 @@ UCHAR AsciiFromScan(UCHAR s)
|
||||||
{
|
{
|
||||||
for(i=0;i<DIM(ucShiftScanToAscii_US);i++)
|
for(i=0;i<DIM(ucShiftScanToAscii_US);i++)
|
||||||
{
|
{
|
||||||
if(ucShiftScanToAscii_GER[i].s==s)
|
if(ucShiftScanToAscii_US[i].s==s)
|
||||||
{
|
{
|
||||||
LEAVE_FUNC();
|
LEAVE_FUNC();
|
||||||
return ucShiftScanToAscii_GER[i].a;
|
return ucShiftScanToAscii_US[i].a;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue