More complete keymap.

svn-id: r9440
This commit is contained in:
Marcus Comstedt 2003-08-03 17:59:45 +00:00
parent 31a143dcd4
commit ac2c77f601

View File

@ -81,8 +81,14 @@ int handleInput(struct mapledev *pad, int &mouse_x, int &mouse_y,
newkey = key+((shift & 0x22)? ('!'-0x1e) : ('1'-0x1e));
else if(key >= 0x59 && key <= 0x61)
newkey = key+('1'-0x59);
else if(key >= 0x2d && key <= 0x38 && key != 0x31)
newkey = ((shift & 0x22)?
"=Ż`{ }+*˝<>?" :
"-^@[ ];:§,./")[key - 0x2d];
else if(key >= 0x3a && key <= 0x43)
newkey = key+(315-0x3a);
else if(key >= 0x54 && key <= 0x57)
newkey = "/*-+"[key-0x54];
else switch(key) {
case 0x27: case 0x62:
newkey = ((shift & 0x22)? '~' : '0'); break;
@ -108,6 +114,12 @@ int handleInput(struct mapledev *pad, int &mouse_x, int &mouse_y,
mouse_y++; break;
case 0x52:
mouse_y--; break;
case 0x63:
newkey = '.'; break;
case 0x64: case 0x87:
newkey = ((shift & 0x22)? '_' : '\\'); break;
case 0x89:
newkey = ((shift & 0x22)? '|' : 'Ľ'); break;
}
}
}