Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/key.scad
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,14 @@ module inner_shape(extra_wall_thickness = 0, extra_keytop_thickness = 0) {
// additive objects at the top of the key
module additive_features(inset) {
top_of_key() {
// Allow for key bump in layout
if ($layout_key_bump) {
for (layout_bump_key = $layout_bump_keys){
if (str($legends[0][0]) == layout_bump_key){
keybump($key_bump_depth, $key_bump_edge);
}
}
}
if($key_bump) keybump($key_bump_depth, $key_bump_edge);
if(!inset && $children > 0) color($secondary_color) children();
}
Expand Down
2 changes: 2 additions & 0 deletions src/settings.scad
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ $minkowski_radius = .33;

//insert locating bump
$key_bump = false;
$layout_key_bump = false;
$layout_bump_keys = ["F","f","J","j"];
//height of the location bump from the top surface of the key
$key_bump_depth = 0.5;
//distance to move the bump from the front edge of the key
Expand Down