Skip to content

Commit

Permalink
Merge pull request #22 from Dakkaron/develop
Browse files Browse the repository at this point in the history
Push develop to main
  • Loading branch information
Dakkaron authored Mar 24, 2024
2 parents 8793f4d + 0f770df commit b8f0c27
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions BBQ10/BBQ10.ino
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ void printMatrix() {
toPrint = keyboard_cursor[colIndex][rowIndex];
other1 = keyboard[colIndex][rowIndex];
other2 = keyboard_symbol[colIndex][rowIndex];
} else if (stickySym != STICKY_STATUS_OPEN || keyPressed(K_SYM)) {
} else if (stickySym != STICKY_STATUS_OPEN || keyActive(K_SYM)) {
toPrint = keyboard_symbol[colIndex][rowIndex];
other1 = keyboard[colIndex][rowIndex];
other2 = keyboard_cursor[colIndex][rowIndex];
Expand All @@ -494,14 +494,14 @@ void printMatrix() {
}

// Workaround for left shift key dropping while being pressed
if (keyPressed(K_LSH) && rowIndex!=1 && colIndex!=6) {
if (keyActive(K_LSH) && rowIndex!=1 && colIndex!=6) {
KEYBOARD_RELEASE(KEY_LEFT_SHIFT);
KEYBOARD_PRESS(KEY_LEFT_SHIFT);
}
if (keyPressed(colIndex, rowIndex)) {
if (toPrint!=NULL) {
if (stickyLsh != STICKY_STATUS_OPEN && !keyPressed(K_LSH)) { KEYBOARD_PRESS(KEY_LEFT_SHIFT); }
if (stickyRsh != STICKY_STATUS_OPEN && !keyPressed(K_RSH)) { KEYBOARD_PRESS(KEY_RIGHT_SHIFT); }
if (stickyLsh != STICKY_STATUS_OPEN && !keyActive(K_LSH)) { KEYBOARD_PRESS(KEY_LEFT_SHIFT); }
if (stickyRsh != STICKY_STATUS_OPEN && !keyActive(K_RSH)) { KEYBOARD_PRESS(KEY_RIGHT_SHIFT); }
if (stickyCtrl!= STICKY_STATUS_OPEN && !keyActive(K_MIC)) { KEYBOARD_PRESS(KEY_LEFT_CTRL); }
if (stickyAlt != STICKY_STATUS_OPEN && !keyActive(K_ALT)) { KEYBOARD_PRESS(KEY_LEFT_ALT); }
KEYBOARD_PRESS(toPrint);
Expand All @@ -516,8 +516,8 @@ void printMatrix() {
if (other2!=NULL) {
KEYBOARD_RELEASE(other2);
}
if (!keyPressed(K_LSH)) { KEYBOARD_RELEASE(KEY_LEFT_SHIFT); }
if (!keyPressed(K_RSH)) { KEYBOARD_RELEASE(KEY_RIGHT_SHIFT); }
if (!keyActive(K_LSH)) { KEYBOARD_RELEASE(KEY_LEFT_SHIFT); }
if (!keyActive(K_RSH)) { KEYBOARD_RELEASE(KEY_RIGHT_SHIFT); }
if (!keyActive(K_MIC)) { KEYBOARD_RELEASE(KEY_LEFT_CTRL); }
if (!keyActive(K_ALT)) { KEYBOARD_RELEASE(KEY_LEFT_ALT); }
}
Expand Down
2 changes: 1 addition & 1 deletion Case/Generator/Fairberry.scad
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Version 2

SCREEN_PROTECTOR_HEIGHT=0.6; // Thickness of the screen protector
EXTRUSION_WIDTH=0.4; // Extrusion width of your 3D printer
EXTRUSION_WIDTH=0.48; // Extrusion width of your 3D printer

// Uncomment the type of phone you use. If your phone doesn't appear in this list, leave "include <presets/Custom.scad>" and edit the file at presets/Custom.scad to fit your phone.
include <presets/Custom.scad>
Expand Down
2 changes: 1 addition & 1 deletion Case/Generator/presets/Custom.scad
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ CASE_TOP_ROUNDING_OFFSET=1; // Increasing this number makes the top less rounded

KEYBOARD_PHONE_GAP_PERIMETERS=2; // Thickness of the separator between keyboard and phone screen

FORCE_HOLE_CUTAWAYS=true;
FORCE_HOLE_CUTAWAYS=true; // Will cut holes for USB and speakers even if a dummy file is selected. Use this if the holes aren't included in the dummy file.

0 comments on commit b8f0c27

Please sign in to comment.