diff options
author | Nick Brassel <nick@tzarc.org> | 2023-12-18 14:06:47 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-18 14:06:47 +1100 |
commit | f25226453fb253b5d1c2f1684365d6248d8b5750 (patch) | |
tree | 8fbc0eb6b4a56adcd6dca750ce2ccca9dc85bc1a /keyboards/ai03/duet/keymaps | |
parent | 9539f135d8161557f0ffdfecb6e8c8c8b09786a2 (diff) |
Remove obvious user keymaps, `keyboards/a*` edition. (#22692)
Diffstat (limited to 'keyboards/ai03/duet/keymaps')
-rw-r--r-- | keyboards/ai03/duet/keymaps/coordinate/keymap.c | 34 | ||||
-rw-r--r-- | keyboards/ai03/duet/keymaps/coordinate/readme.md | 4 |
2 files changed, 0 insertions, 38 deletions
diff --git a/keyboards/ai03/duet/keymaps/coordinate/keymap.c b/keyboards/ai03/duet/keymaps/coordinate/keymap.c deleted file mode 100644 index 821c029534..0000000000 --- a/keyboards/ai03/duet/keymaps/coordinate/keymap.c +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2023 QMK -// SPDX-License-Identifier: GPL-2.0-or-later - -#include QMK_KEYBOARD_H - - -/* Coordinate keymap - designed to send a string in the format [a-r][0-5] corresponding to the matrix position, where a0 is the top left and r5 is bottom right */ - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - - [0] = LAYOUT( - KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, - KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, - KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, - KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, - KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, - KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0, KC_0 - ), -}; - - -/* String generation */ - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - - if (record->event.pressed) { - char col = record->event.key.col + 'a'; - char row = record->event.key.row + '0'; - char result[2] = {col, row}; - send_string(result); - } - - return false; -} diff --git a/keyboards/ai03/duet/keymaps/coordinate/readme.md b/keyboards/ai03/duet/keymaps/coordinate/readme.md deleted file mode 100644 index de8245875d..0000000000 --- a/keyboards/ai03/duet/keymaps/coordinate/readme.md +++ /dev/null @@ -1,4 +0,0 @@ -# The coordinate keymap for Duet - -An example keymap which sends a string `[a-r][0-5]` corresponding to the column-row position of the pressed switch. -Possibly useful for pairing to a kiosk device provided the display application can parse and handle this format. |