aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMarcus Comstedt2003-08-03 17:59:45 +0000
committerMarcus Comstedt2003-08-03 17:59:45 +0000
commitac2c77f60146b2fa781e4df681cf7d2201a85000 (patch)
treeae8c4afc9baa5c278d581f48a4c77774cd56cd07 /backends
parent31a143dcd48601509e11806c00c443edd1f26b6f (diff)
downloadscummvm-rg350-ac2c77f60146b2fa781e4df681cf7d2201a85000.tar.gz
scummvm-rg350-ac2c77f60146b2fa781e4df681cf7d2201a85000.tar.bz2
scummvm-rg350-ac2c77f60146b2fa781e4df681cf7d2201a85000.zip
More complete keymap.
svn-id: r9440
Diffstat (limited to 'backends')
-rw-r--r--backends/dc/input.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/backends/dc/input.cpp b/backends/dc/input.cpp
index e7b3dad072..eaa89be83e 100644
--- a/backends/dc/input.cpp
+++ b/backends/dc/input.cpp
@@ -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;
}
}
}