summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorsvu <svu>2007-10-05 22:37:28 +0000
committersvu <svu>2007-10-05 22:37:28 +0000
commitb6646f5674c0b508c52b1660643e902d7fb6a70e (patch)
tree2a0e1c4f84edbbc987a0e49a052321d71daf529c /compat
parente79d3b61d1680e3a20ee6370cf5439508d9ae81c (diff)
downloadxkeyboard-config-b6646f5674c0b508c52b1660643e902d7fb6a70e.tar.gz
xkeyboard-config-b6646f5674c0b508c52b1660643e902d7fb6a70e.tar.bz2
xkeyboard-config-b6646f5674c0b508c52b1660643e902d7fb6a70e.zip
olpc compat
Diffstat (limited to 'compat')
-rw-r--r--compat/Makefile.am2
-rw-r--r--compat/olpc52
2 files changed, 53 insertions, 1 deletions
diff --git a/compat/Makefile.am b/compat/Makefile.am
index 3f994fa9..d1db8e52 100644
--- a/compat/Makefile.am
+++ b/compat/Makefile.am
@@ -6,7 +6,7 @@ default iso9995 \
japan keypad ledcaps \
lednum ledscroll level5 \
misc mousekeys norepeat \
-pc pc98 xfree86 \
+olpc pc pc98 xfree86 \
xtest README
include $(top_srcdir)/xkbrules.am
diff --git a/compat/olpc b/compat/olpc
new file mode 100644
index 00000000..001da12c
--- /dev/null
+++ b/compat/olpc
@@ -0,0 +1,52 @@
+// $XKeyboardConfig$
+//
+// Created by Bernardo Innocenti <bernie@codewiz.org>
+//
+// Map the OLPC game keys to virtual modifiers
+//
+
+default xkb_compatibility "olpc" {
+ include "complete"
+
+ virtual_modifiers Square,Cross,Triangle,Circle;
+
+ interpret KP_Home+Any {
+ //useModMapMods= level1;
+ virtualModifier= Square;
+ action = SetMods(modifiers=modMapMods);
+ };
+
+ interpret KP_Home {
+ action = SetMods(modifiers=Square);
+ };
+
+ interpret KP_Next+Any {
+ //useModMapMods= level1;
+ virtualModifier= Cross;
+ action = SetMods(modifiers=modMapMods);
+ };
+
+ interpret KP_Next {
+ action = SetMods(modifiers=Cross);
+ };
+
+ interpret KP_End+Any {
+ //useModMapMods= level1;
+ virtualModifier= Circle;
+ action = SetMods(modifiers=modMapMods);
+ };
+
+ interpret KP_End {
+ action = SetMods(modifiers=Circle);
+ };
+
+ interpret KP_Prior+Any {
+ //useModMapMods= level1;
+ virtualModifier= Triangle;
+ action = SetMods(modifiers=modMapMods);
+ };
+
+ interpret KP_Prior {
+ action = SetMods(modifiers=Triangle);
+ };
+};