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 //useModMapMods= level1; 14 virtualModifier= Square; 15 action = SetMods(modifiers=modMapMods); 16 }; 17 18 interpret KP_Home { 19 action = SetMods(modifiers=Square); 20 }; 21 22 interpret KP_Next+Any { 23 //useModMapMods= level1; 24 virtualModifier= Cross; 25 action = SetMods(modifiers=modMapMods); 26 }; 27 28 interpret KP_Next { 29 action = SetMods(modifiers=Cross); 30 }; 31 32 interpret KP_End+Any { 33 //useModMapMods= level1; 34 virtualModifier= Circle; 35 action = SetMods(modifiers=modMapMods); 36 }; 37 38 interpret KP_End { 39 action = SetMods(modifiers=Circle); 40 }; 41 42 interpret KP_Prior+Any { 43 //useModMapMods= level1; 44 virtualModifier= Triangle; 45 action = SetMods(modifiers=modMapMods); 46 }; 47 48 interpret KP_Prior { 49 action = SetMods(modifiers=Triangle); 50 }; 51}; 52