1//
2// Map the OLPC game keys to virtual modifiers.
3//
4// Created by Bernardo Innocenti <bernie@codewiz.org>
5//
6
7default xkb_compatibility "olpc" {
8    include "complete"
9
10    virtual_modifiers  Square,Cross,Triangle,Circle;
11
12    interpret KP_Home+Any {
13        virtualModifier= Square;
14        action = SetMods(modifiers=modMapMods);
15    };
16
17    interpret KP_Home {
18        action = SetMods(modifiers=Square);
19    };
20
21    interpret KP_Next+Any {
22        virtualModifier= Cross;
23        action = SetMods(modifiers=modMapMods);
24    };
25
26    interpret KP_Next {
27        action = SetMods(modifiers=Cross);
28    };
29
30    interpret KP_End+Any {
31        virtualModifier= Circle;
32        action = SetMods(modifiers=modMapMods);
33    };
34
35    interpret KP_End {
36        action = SetMods(modifiers=Circle);
37    };
38
39    interpret KP_Prior+Any {
40        virtualModifier= Triangle;
41        action = SetMods(modifiers=modMapMods);
42    };
43
44    interpret KP_Prior {
45        action = SetMods(modifiers=Triangle);
46    };
47};
48