Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
keymaps: add French_layout_058
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
  • Loading branch information
Xiangfu Liu committed May 9, 2011
1 parent 1fd2f71 commit d00cd70
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions lib/keymap.c
Expand Up @@ -30,9 +30,17 @@
#define AE 132 /* 'ä' */
#define MU 230 /* 'µ' */
#define DI 246 /* '÷' */
#define EA 130 /* 'é' */
#define DR 175 /* '»' */

static int curr_layout = 2;

/*
* TODO: AltGr not working, it's same as SHIFT,
* Non-ascii not working.
* SHIFLT of 'ö' 'ä' 'µ' 'é' '»' not working.
* http://ascii-table.com/keyboards.php
*/
static char keymap[3][128] = {
{ 0,ESC,'1','2','3','4','5','6','7','8','9','0','-','=', BS,TAB, /* 16 */
'q','w','e','r','t','y','u','i','o','p','[',']', LF, 0,'a','s', /* 32 */
Expand All @@ -41,17 +49,23 @@ static char keymap[3][128] = {
0, 0, 0, 0, 0, 0, 0,'7','8','9','-','4','5','6','+','1', /* 80 */
'2','3','0','.', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 96 */
LF, 0,'/', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 112 */
}, /* US layout */
{0
}, /* French layout */
}, /* US layout 103P */
{ 0,ESC,'1','2','3','4','5','6','7','8','9','0','-','=', BS,TAB,
'q','w','e','r','t','y','u','i','o','p','[',']', LF, 0,'a','s',
'd','f','g','h','j','k','l',';','{','#',0,'<','z','x','c','v',
'b','n','m',',','.', EA, 0,'*', 0,' ', 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0,'7','8','9','-','4','5','6','+','1',
'2','3','0','.', 0, 0, DR, 0, 0, 0, 0, 0, 0, 0, 0, 0,
LF, 0,'/', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
}, /* French layout 058 */
{ 0,ESC,'1','2','3','4','5','6','7','8','9','0','\\', 0,BS,TAB,
'q','w','e','r','t','z','u','i','o','p', UE,'+', LF, 0,'a','s',
'd','f','g','h','j','k','l',OE, AE,'^', 0,'#','y','x','c','v',
'b','n','m',',','.','-', 0,'*', 0,' ', 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0,'7','8','9','-','4','5','6','+','1',
'2','3','0',',', 0, 0,'<', 0, 0, 0, 0, 0, 0, 0, 0, 0,
LF, 0, DI, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
} /* German layout */
} /* German layout 129 */
};

static char shift[3][128] = {
Expand All @@ -60,14 +74,17 @@ static char shift[3][128] = {
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , /* 48 */
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,'{','|','}', 0 , 0 , /* 64 */
'~',
}, /* US layout */
{0
}, /* French layout */
}, /* US layout 103P */
{' ', 0 , 0 ,'|', 0 , 0 , 0, 0 , 0, 0 , 0 , 0,'\'','_','\"', 0 ,
')','!','\"','/','$','%','?','&','*','(',0 ,':','>','+', 0 , 0 ,
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,'{', 0 ,'}', 0 , 0 ,
}, /* French layout 058 */
{' ', 0 , 0 ,39, 0 , 0 , 0 , 0 , 0 , 0 , 0 ,'*',';','_',':', 0 ,
'=','!','"',PAR,'$','%','&','/','(',')', 0 , 0 ,'>', 0 , 0 , 0 ,
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,'?', 0 ,DEG, 0 ,
} /* German layout */
} /* German layout 129 */
};

int init_keymap(struct mtk_services *d);
Expand Down

0 comments on commit d00cd70

Please sign in to comment.