2009-06-06 11:52:23 -06:00
|
|
|
//
|
2014-05-05 12:05:33 -06:00
|
|
|
// Map the OLPC game keys to virtual modifiers.
|
2009-06-06 11:52:23 -06:00
|
|
|
//
|
2014-05-05 12:05:33 -06:00
|
|
|
// Created by Bernardo Innocenti <bernie@codewiz.org>
|
2009-06-06 11:52:23 -06:00
|
|
|
//
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
default xkb_compatibility "olpc" {
|
2009-06-06 11:52:23 -06:00
|
|
|
include "complete"
|
|
|
|
|
|
|
|
virtual_modifiers Square,Cross,Triangle,Circle;
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret KP_Home+Any {
|
2009-06-06 11:52:23 -06:00
|
|
|
//useModMapMods= level1;
|
2014-05-05 12:05:33 -06:00
|
|
|
virtualModifier= Square;
|
|
|
|
action = SetMods(modifiers=modMapMods);
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret KP_Home {
|
|
|
|
action = SetMods(modifiers=Square);
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret KP_Next+Any {
|
2009-06-06 11:52:23 -06:00
|
|
|
//useModMapMods= level1;
|
2014-05-05 12:05:33 -06:00
|
|
|
virtualModifier= Cross;
|
|
|
|
action = SetMods(modifiers=modMapMods);
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret KP_Next {
|
|
|
|
action = SetMods(modifiers=Cross);
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret KP_End+Any {
|
2009-06-06 11:52:23 -06:00
|
|
|
//useModMapMods= level1;
|
2014-05-05 12:05:33 -06:00
|
|
|
virtualModifier= Circle;
|
|
|
|
action = SetMods(modifiers=modMapMods);
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret KP_End {
|
|
|
|
action = SetMods(modifiers=Circle);
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret KP_Prior+Any {
|
2009-06-06 11:52:23 -06:00
|
|
|
//useModMapMods= level1;
|
2014-05-05 12:05:33 -06:00
|
|
|
virtualModifier= Triangle;
|
|
|
|
action = SetMods(modifiers=modMapMods);
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
interpret KP_Prior {
|
2014-05-05 12:05:33 -06:00
|
|
|
action = SetMods(modifiers=Triangle);
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
};
|