conv clavier qwerty -> azerty

Postby maestro » Wed May 30, 2007 12:00 am

Pour tous se qui utilise le clavier français azerty, je vous propose une correction du fichier scancodes.h.
// Unshifted characters
code unsigned char unshifted[80][2] = {
{0x0d,9}, //tab
{0x0e,²'},
{0x15,'a'},
{0x16,'&'},
{0x1a,'w'},
{0x1b,'s'},
{0x1c,'q'},
{0x1d,'z'},
{0x1e,'é'},
{0x21,'c'},
{0x22,'x'},
{0x23,'d'},
{0x24,'e'},
{0x25,'\''},
{0x26,'"'},
{0x29,' '},
{0x2a,'v'},
{0x2b,'f'},
{0x2c,'t'},
{0x2d,'r'},
{0x2e,'('},
{0x31,'n'},
{0x32,'b'},
{0x33,'h'},
{0x34,'g'},
{0x35,'y'},
{0x36,'-'},
//{0x39,','},
{0x3a,','},
{0x3b,'j'},
{0x3c,'u'},
{0x3d,'è'},
{0x3e,'_'},
{0x41,','},
{0x42,'k'},
{0x43,'i'},
{0x44,'o'},
{0x45,'à'},
{0x46,'ç'},
{0x49,':'},
{0x4a,'!'},
{0x4b,'l'},
{0x4c,'m'},
{0x4d,'p'},
{0x4e,')'},
{0x52,'ù'},
{0x54,'^'},
{0x55,'='},
{0x5a,13},
{0x5b,'$'},
//{0x5d,'\''},
//{0x61,'<'},
{0x66,8},
{0x69,'1'},
{0x6b,'4'},
{0x6c,'7'},
{0x70,'0'},
{0x71,'.'},
{0x72,'2'},
{0x73,'5'},
{0x74,'6'},
{0x75,'8'},
{0x79,'+'},
{0x7a,'3'},
{0x7b,'-'},
{0x7c,'*'},
{0x7d,'9'},
{0x05,0x81}, // F1
{0x06,0x82}, // F2
{0x04,0x83}, // F3
{0x0C,0x84}, // F4
{0x03,0x85}, // F5
{0x0B,0x86}, // F6
{0x83,0x87}, // F7
{0x0A,0x88}, // F8
{0x01,0x89}, // F9
{0x09,0x90}, // F10
{0x78,0x91}, // F11
{0x07,0x92}, // F12
{0,0}
};

// Shifted characters
code unsigned char shifted[80][2] = {
{0x0d,9},
{0x0e,'²'},
{0x15,'A'},
{0x16,'1'},
{0x1a,'W'},
{0x1b,'S'},
{0x1c,'Q'},
{0x1d,'Z'},
{0x1e,'2'},
{0x21,'C'},
{0x22,'X'},
{0x23,'D'},
{0x24,'E'},
{0x25,'4'},
{0x26,'3'},
{0x29,' '},
{0x2a,'V'},
{0x2b,'F'},
{0x2c,'T'},
{0x2d,'R'},
{0x2e,'5'},
{0x31,'N'},
{0x32,'B'},
{0x33,'H'},
{0x34,'G'},
{0x35,'Y'},
{0x36,'6'},
//{0x39,'L'},
{0x3a,'?'},
{0x3b,'J'},
{0x3c,'U'},
{0x3d,'7'},
{0x3e,'8'},
{0x41,'.'},
{0x42,'K'},
{0x43,'I'},
{0x44,'O'},
{0x45,'0'},
{0x46,'9'},
{0x49,'/'},
{0x4a,'§'},
{0x4b,'L'},
{0x4c,'M'},
{0x4d,'P'},
{0x4e,'°'},
{0x52,'%'},
{0x54,'¨'},
{0x55,'+'},
{0x5a,13},
{0x5b,'£'},
//{0x5d,'*'},
//{0x61,'>'},
{0x66,8},
{0x69,'1'},
{0x6b,'4'},
{0x6c,'7'},
{0x70,'0'},
{0x71,'.'},
{0x72,'2'},
{0x73,'5'},
{0x74,'6'},
{0x75,'8'},
{0x79,'+'},
{0x7a,'3'},
{0x7b,'-'},
{0x7c,'*'},
{0x7d,'9'},
{0x05,0x81}, // F1
{0x06,0x82}, // F2
{0x04,0x83}, // F3
{0x0C,0x84}, // F4
{0x03,0x85}, // F5
{0x0B,0x86}, // F6
{0x83,0x87}, // F7
{0x0A,0x88}, // F8
{0x01,0x89}, // F9
{0x09,0x90}, // F10
{0x78,0x91}, // F11
{0x07,0x92}, // F12
{0,0}
};

code unsigned char key[20][2] = {
{0x58,0x58}, //CAPS
{0x77,0x77}, //NUM
{0.0}
};'
maestro
 
Posts: 14
Joined: Fri Jan 03, 2014 1:54 pm

Return to Carte FPGA (03-2006)

Who is online

Users browsing this forum: yahoo [bot] and 1 guest

cron