Skip to content

Commit

Permalink
update to version 0.18.17
Browse files Browse the repository at this point in the history
  • Loading branch information
aki27kbd committed May 12, 2023
1 parent 9ad7f5e commit 0671121
Show file tree
Hide file tree
Showing 23 changed files with 1,205 additions and 34 deletions.
20 changes: 4 additions & 16 deletions keyboards/aki27/cocot36plus/keymaps/auto_mouse/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,18 +278,13 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
{
report_mouse_t currentReport = pointing_device_get_report();

// どこのビットを対象にするか。 Which bits are to be targeted?
uint8_t btn = 1 << (keycode - KC_MS_BTN1);

if (record->event.pressed) {
// ビットORは演算子の左辺と右辺の同じ位置にあるビットを比較して、両方のビットのどちらかが「1」の場合に「1」にします。
// Bit OR compares bits in the same position on the left and right sides of the operator and sets them to "1" if either of both bits is "1".
currentReport.buttons |= btn;
state = CLICKING;
after_click_lock_movement = 30;
} else {
// ビットANDは演算子の左辺と右辺の同じ位置にあるビットを比較して、両方のビットが共に「1」の場合だけ「1」にします。
// Bit AND compares the bits in the same position on the left and right sides of the operator and sets them to "1" only if both bits are "1" together.
currentReport.buttons &= ~btn;
enable_click_layer();
}
Expand All @@ -298,26 +293,19 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
pointing_device_send();
return false;
}
/*
case KC_MS_BTN4:
case KC_MS_BTN5:
if (record->event.pressed) {
enable_click_layer();
}
*/
case SCRL_MO:
if (record->event.pressed) {
state = SCROLLING;
} else {
enable_click_layer(); // スクロールキーを離した時に再度クリックレイヤーを有効にする。 Enable click layer again when the scroll key is released.
}
return false;

default:
return false;
/*
default:
if (record->event.pressed) {
disable_click_layer();
}

*/
}

return true;
Expand Down
2 changes: 2 additions & 0 deletions keyboards/aki27/cocot46plus/cocot46plus.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ static int16_t v_acm = 0;
void pointing_device_init_kb(void) {
// set the CPI.
pointing_device_set_cpi(cpi_array[cocot_config.cpi_idx]);
adns5050_write_reg(0x22, 0b10000 | 0x80);
}


Expand Down Expand Up @@ -194,6 +195,7 @@ void eeconfig_init_kb(void) {
cocot_config.scrl_mode = false;
eeconfig_update_kb(cocot_config.raw);
eeconfig_init_user();
adns5050_write_reg(0x22, 0b10000 | 0x80);
}


Expand Down
1 change: 1 addition & 0 deletions keyboards/aki27/cocot46plus/keymaps/rp2040/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#define IGNORE_MOD_TAP_INTERRUPT
Loading

0 comments on commit 0671121

Please sign in to comment.