key_profiles.scad
1 // key profile definitions 2 3 // unlike the other files with their own dedicated folders, this one doesn't 4 // need a selector. I wrote one anyways for customizer support though 5 include <key_profiles/dcs.scad> 6 include <key_profiles/oem.scad> 7 include <key_profiles/dsa.scad> 8 include <key_profiles/sa.scad> 9 include <key_profiles/g20.scad> 10 include <key_profiles/hipro.scad> 11 include <key_profiles/grid.scad> 12 include <key_profiles/cherry.scad> 13 include <key_profiles/dss.scad> 14 15 // man, wouldn't it be so cool if functions were first order 16 module key_profile(key_profile_type, row, column=0) { 17 if (key_profile_type == "dcs") { 18 dcs_row(row, column) children(); 19 } else if (key_profile_type == "oem") { 20 oem_row(row, column) children(); 21 } else if (key_profile_type == "dsa") { 22 dsa_row(row, column) children(); 23 } else if (key_profile_type == "dss") { 24 dss_row(row, column) children(); 25 } else if (key_profile_type == "sa") { 26 sa_row(row, column) children(); 27 } else if (key_profile_type == "g20") { 28 g20_row(row, column) children(); 29 } else if (key_profile_type == "hipro") { 30 hipro_row(row, column) children(); 31 } else if (key_profile_type == "grid") { 32 grid_row(row, column) children(); 33 } else if (key_profile_type == "cherry") { 34 cherry_row(row, column) children(); 35 } else if (key_profile_type == "disable") { 36 children(); 37 } else { 38 echo("Warning: unsupported key_profile_type"); 39 } 40 }