-
Notifications
You must be signed in to change notification settings - Fork 188
/
key_types.scad
65 lines (52 loc) · 1.2 KB
/
key_types.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
include <functions.scad>
use <key_sizes.scad>
use <key_transformations.scad>
module spacebar() {
$inverted_dish = $dish_type != "disable";
$dish_type = $dish_type != "disable" ? "sideways cylindrical" : "disable";
6_25u() stabilized(mm=50) children();
}
module lshift() {
2_25u() stabilized() children();
}
module rshift() {
2_75u() stabilized() children();
}
module backspace() {
2u() stabilized() children();
}
module enter() {
2_25u() stabilized() children();
}
module numpad_enter() {
2uh() stabilized(vertical=true) children();
}
module numpad_plus() {
numpad_enter() children();
}
module numpad_0() {
backspace() children();
}
module stepped_caps_lock() {
u(1.75) {
$stem_positions = [[-5, 0]];
children();
}
}
module iso_enter() {
$key_length = 1.5;
$key_height = 2;
$dish_offset_x = -(unit_length(1.5) - unit_length(1.25))/2;
/* $top_tilt = 0; */
$stem_support_type = "disable";
$key_shape_type = "iso_enter";
$hull_shape_type = "skin";
$linear_extrude_height_adjustment = 19.05 * 0.5;
// this equals (unit_length(1.5) - unit_length(1.25)) / 2
/* $dish_overdraw_width = 2.38125; */
render() {
stabilized(vertical=true) {
children();
}
}
}