| 1 |
// |
| 2 |
// Map the OLPC game keys to virtual modifiers. |
| 3 |
// |
| 4 |
// Created by Bernardo Innocenti <[email protected]> |
| 5 |
// |
| 6 |
|
| 7 |
default xkb_compatibility "olpc" { |
| 8 |
include "complete" |
| 9 |
|
| 10 |
virtual_modifiers Square,Cross,Triangle,Circle; |
| 11 |
|
| 12 |
setMods.clearLocks= True; |
| 13 |
|
| 14 |
interpret KP_Home+Any { |
| 15 |
virtualModifier= Square; |
| 16 |
action = SetMods(modifiers=modMapMods); |
| 17 |
}; |
| 18 |
|
| 19 |
interpret KP_Home { |
| 20 |
action = SetMods(modifiers=Square); |
| 21 |
}; |
| 22 |
|
| 23 |
interpret KP_Next+Any { |
| 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 |
virtualModifier= Circle; |
| 34 |
action = SetMods(modifiers=modMapMods); |
| 35 |
}; |
| 36 |
|
| 37 |
interpret KP_End { |
| 38 |
action = SetMods(modifiers=Circle); |
| 39 |
}; |
| 40 |
|
| 41 |
interpret KP_Prior+Any { |
| 42 |
virtualModifier= Triangle; |
| 43 |
action = SetMods(modifiers=modMapMods); |
| 44 |
}; |
| 45 |
|
| 46 |
interpret KP_Prior { |
| 47 |
action = SetMods(modifiers=Triangle); |
| 48 |
}; |
| 49 |
}; |