git.s-ol.nu hw/0x33.board/firmware / b9a0e33
add Jankó layout s-ol 3 months ago
2 changed file(s) with 8 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
126126 # LAYOUT
127127 "layout_name": ChoiceSetting(
128128 "KEYBOARD LAYOUT",
129 ['wicki/hayden', 'harmonic table', 'gerhard'],
129 ['wicki/hayden', 'harmonic table', 'gerhard', 'jankó'],
130130 default='wicki/hayden',
131131 ),
132132 "layout_offset": SliderSetting(
3030 return int(self.offset + 3 * x + 2.5 * y)
3131
3232
33 class JankoLayout(Layout):
34 def get_pitch(self, key: Key) -> int:
35 x, y = key.pos
36 return int(self.offset + 2 * x)
37
38
3339 LAYOUTS = {
3440 "wicki/hayden": WickiHaydenLayout,
3541 "harmonic table": HarmonicLayout,
3642 "gerhard": GerhardLayout,
43 "jankó": JankoLayout,
3744 }