KeyV2/src/key_profiles.scad

35 lines
1.2 KiB
OpenSCAD
Raw Normal View History

2018-02-05 07:43:17 +11:00
// key profile definitions
// unlike the other files with their own dedicated folders, this one doesn't
// need a selector. I wrote one anyways for customizer support though
2018-02-05 07:43:17 +11:00
include <key_profiles/dcs.scad>
include <key_profiles/oem.scad>
include <key_profiles/dsa.scad>
include <key_profiles/sa.scad>
include <key_profiles/g20.scad>
2019-12-16 16:40:43 +11:00
include <key_profiles/hipro.scad>
include <key_profiles/grid.scad>
2018-02-13 13:36:36 +11:00
// man, wouldn't it be so cool if functions were first order
2019-12-16 16:40:43 +11:00
module key_profile(key_profile_type, row, column=0) {
2018-02-13 13:36:36 +11:00
if (key_profile_type == "dcs") {
2019-12-16 16:40:43 +11:00
dcs_row(row, column) children();
2018-02-13 13:36:36 +11:00
} else if (key_profile_type == "oem") {
2019-12-16 16:40:43 +11:00
oem_row(row, column) children();
2018-02-13 13:36:36 +11:00
} else if (key_profile_type == "dsa") {
2019-12-16 16:40:43 +11:00
dsa_row(row, column) children();
2018-02-13 13:36:36 +11:00
} else if (key_profile_type == "sa") {
2019-12-16 16:40:43 +11:00
sa_row(row, column) children();
2018-02-13 13:36:36 +11:00
} else if (key_profile_type == "g20") {
2019-12-16 16:40:43 +11:00
g20_row(row, column) children();
} else if (key_profile_type == "hipro") {
hipro_row(row, column) children();
} else if (key_profile_type == "grid") {
grid_row(row, column) children();
} else if (key_profile_type == "disable") {
children();
} else {
echo("Warning: unsupported key_profile_type");
2018-02-13 13:36:36 +11:00
}
}