mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2025-02-16 22:37:03 +00:00
Added numpad layouts
Added layouts for numpad keyboards, with options for keys with and without legends.
This commit is contained in:
parent
84c21db8c2
commit
a7bdd87b41
2 changed files with 70 additions and 0 deletions
35
src/layouts/numpad/default.scad
Normal file
35
src/layouts/numpad/default.scad
Normal file
|
@ -0,0 +1,35 @@
|
|||
include <../layout.scad>
|
||||
|
||||
/* The Plus and Enter keys will need to be added manually to the keys.scad file
|
||||
Copy and paste the following two lines into keys.scad to add plus and enter, changing 'LAYOUT_ROW' to your chosen layout
|
||||
|
||||
translate_u(x=3.5, y=-1.5, z=0) LAYOUT_ROW(1) legend("+", size=6) numpad_plus() key();
|
||||
translate_u(x=3.5, y=-3.5, z=0) LAYOUT_ROW(3) legend("⏎", size=6) numpad_enter() key();
|
||||
|
||||
Make sure you comment out/delete the 10u keys and their associated legends before exporting keys.
|
||||
*/
|
||||
|
||||
numpad_default_layout = [
|
||||
[1,1,1,1],
|
||||
[1,1,1,],
|
||||
[1,1,1],
|
||||
[1,1,1],
|
||||
[2,1],
|
||||
[],
|
||||
[10],
|
||||
[10]
|
||||
];
|
||||
|
||||
numpad_legends = [
|
||||
["№", "/", "*", "-"],
|
||||
["7", "8", "9"],
|
||||
["4", "5", "6"],
|
||||
["1", "2", "3"],
|
||||
["0", "."],
|
||||
[],
|
||||
["CHECK NUMPAD_DEFAULT LAYOUT FILE"],
|
||||
["TO ADD NUMPAD PLUS AND ENTER"]
|
||||
];
|
||||
module numpad_default(profile) {
|
||||
layout(numpad_default_layout, profile, numpad_legends) children();
|
||||
}
|
35
src/layouts/numpad/no_legends.scad
Normal file
35
src/layouts/numpad/no_legends.scad
Normal file
|
@ -0,0 +1,35 @@
|
|||
include <../layout.scad>
|
||||
|
||||
/* The Plus and Enter keys will need to be added manually to the keys.scad file
|
||||
Copy and paste the following two lines into keys.scad to add plus and enter, changing 'LAYOUT_ROW' to your chosen layout
|
||||
|
||||
translate_u(x=3.5, y=-1.5, z=0) LAYOUT_ROW(1) numpad_plus() key();
|
||||
translate_u(x=3.5, y=-3.5, z=0) LAYOUT_ROW(3) numpad_enter() key();
|
||||
|
||||
Make sure you comment out/delete the 10u keys and their associated legends before exporting keys.
|
||||
*/
|
||||
|
||||
numpad_no_legends_layout = [
|
||||
[1,1,1,1],
|
||||
[1,1,1,],
|
||||
[1,1,1],
|
||||
[1,1,1],
|
||||
[2,1],
|
||||
[],
|
||||
[10],
|
||||
[10]
|
||||
];
|
||||
|
||||
numpad_legends = [
|
||||
[],
|
||||
[],
|
||||
[],
|
||||
[],
|
||||
[],
|
||||
[],
|
||||
["CHECK NUMPAD_NO_LEGENDS LAYOUT FILE"],
|
||||
["TO ADD NUMPAD PLUS AND ENTER"]
|
||||
];
|
||||
module numpad_no_legends(profile) {
|
||||
layout(numpad_default_layout, profile, numpad_legends) children();
|
||||
}
|
Loading…
Reference in a new issue