olpc compat
authorsvu <svu>
Fri, 5 Oct 2007 22:37:28 +0000 (22:37 +0000)
committersvu <svu>
Fri, 5 Oct 2007 22:37:28 +0000 (22:37 +0000)
compat/Makefile.am
compat/olpc [new file with mode: 0644]

index 3f994fa..d1db8e5 100644 (file)
@@ -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 (file)
index 0000000..001da12
--- /dev/null
@@ -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);
+    };
+};