summaryrefslogtreecommitdiffstats
path: root/keyboards/synthlabs/solo/keymaps
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2022-12-06 17:10:48 +0800
committerlokher <lokher@gmail.com>2022-12-07 15:50:49 +0800
commita336c2c5005251e4cb0f3a62ccabdb4cfccad915 (patch)
tree3c948b631a5e3b6f940dabe02fad3c7487e6f350 /keyboards/synthlabs/solo/keymaps
parent27fc28fd2ff52e079a5bc58d6aaea4c752420615 (diff)
Merge upstream master to 2022 Q4 breaking change
Diffstat (limited to 'keyboards/synthlabs/solo/keymaps')
-rw-r--r--keyboards/synthlabs/solo/keymaps/gamepad/keymap.c30
-rw-r--r--keyboards/synthlabs/solo/keymaps/gamepad/readme.md3
-rw-r--r--keyboards/synthlabs/solo/keymaps/iidx/keymap.c72
-rw-r--r--keyboards/synthlabs/solo/keymaps/iidx/readme.md16
-rw-r--r--keyboards/synthlabs/solo/keymaps/iidx/rules.mk3
5 files changed, 0 insertions, 124 deletions
diff --git a/keyboards/synthlabs/solo/keymaps/gamepad/keymap.c b/keyboards/synthlabs/solo/keymaps/gamepad/keymap.c
deleted file mode 100644
index f450769b43..0000000000
--- a/keyboards/synthlabs/solo/keymaps/gamepad/keymap.c
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2022 Aaron Hong (@hongaaronc)
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include QMK_KEYBOARD_H
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [0] = LAYOUT_all(
- JS_0,JS_1,JS_2,JS_3,JS_4,JS_5,JS_6,
- KC_NO, JS_7, KC_NO,
- JS_0,JS_1,JS_2,JS_3,JS_4,JS_5,JS_6
- )
-};
-
-#if defined(JOYSTICK_ENABLE) && defined(ENCODER_ENABLE)
-
-int16_t joystick_position = 0;
-int16_t pulses_per_revolution = 24; // Depends on encoder model. Usually 18ppr or 24ppr for Bourns EC11s.
-int16_t full_joystick_value = 32767; // Equivalent to max value of int16. +full_joystick_value is +1.0 axis output. -full_joystick_value is -1.0 axis output.
-joystick_config_t joystick_axes[JOYSTICK_AXIS_COUNT] = {
- [0] = JOYSTICK_AXIS_VIRTUAL
-};
-
-bool encoder_update_kb(uint8_t index, bool clockwise) {
- joystick_position += (clockwise ? 2 : -2) * (full_joystick_value / pulses_per_revolution); // +2 and -2 are used, since +1.0 and -1.0 axis output refers to positions at half of a full rotation
- joystick_set_axis(0, joystick_position);
-
- return true;
-}
-
-#endif
diff --git a/keyboards/synthlabs/solo/keymaps/gamepad/readme.md b/keyboards/synthlabs/solo/keymaps/gamepad/readme.md
deleted file mode 100644
index 12e0df2cf2..0000000000
--- a/keyboards/synthlabs/solo/keymaps/gamepad/readme.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# Gamepad Synth Labs Solo Layout
-
-This keymap is intended for usage as a generic gamepad. The rotary encoder is mapped as a virtual 1-axis joystick.
diff --git a/keyboards/synthlabs/solo/keymaps/iidx/keymap.c b/keyboards/synthlabs/solo/keymaps/iidx/keymap.c
deleted file mode 100644
index f274ba9c06..0000000000
--- a/keyboards/synthlabs/solo/keymaps/iidx/keymap.c
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright 2022 Aaron Hong (@hongaaronc)
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include QMK_KEYBOARD_H
-
-#include "joystick.h"
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [0] = LAYOUT_all(
- JS_BUTTON0,JS_BUTTON1,JS_BUTTON2,JS_BUTTON3,JS_BUTTON4,JS_BUTTON5,JS_BUTTON6,
- JS_BUTTON8, MO(1), JS_BUTTON7,
- JS_BUTTON0,JS_BUTTON1,JS_BUTTON2,JS_BUTTON3,JS_BUTTON4,JS_BUTTON5,JS_BUTTON6
- ),
- [1] = LAYOUT_all(
- JS_BUTTON9,JS_BUTTON0,JS_BUTTON10, _______,JS_BUTTON11,JS_BUTTON1,JS_BUTTON12,
- _______, _______, _______,
- JS_BUTTON10,JS_BUTTON0,JS_BUTTON9, _______,JS_BUTTON11,JS_BUTTON1,JS_BUTTON12
- ),
-};
-
-#if defined(ENCODER_MAP_ENABLE)
-/* The amount of time the encoder has to remain stationary, before unregistering encoder bindings */
-uint16_t encoder_stationary_release_delay_ms = 25;
-
-uint16_t encoder_last_update_time = 0;
-
-enum {
- CCW_JOYSTICK_BUTTON = 8,
- CW_JOYSTICK_BUTTON = 7,
-};
-
-enum {
- CCW_MACRO = SAFE_RANGE,
- CW_MACRO,
-};
-
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- switch (keycode) {
- case CCW_MACRO:
- unregister_joystick_button(CW_JOYSTICK_BUTTON);
- register_joystick_button(CCW_JOYSTICK_BUTTON);
- encoder_last_update_time = timer_read(); /* Update the last time that the encoder was detected as rotated */
- return false;
- case CW_MACRO:
- unregister_joystick_button(CCW_JOYSTICK_BUTTON);
- register_joystick_button(CW_JOYSTICK_BUTTON);
- encoder_last_update_time = timer_read(); /* Update the last time that the encoder was detected as rotated */
- return false;
- default:
- return true;
- }
-}
-
-void housekeeping_task_user(void) {
- uint16_t current_time = timer_read();
- uint16_t elapsed_time_since_last_update = current_time - encoder_last_update_time;
-
- /* If an encoder has been stationary for encoder_stationary_release_delay_ms, then unregister the joystick buttons for both directions */
- if (elapsed_time_since_last_update >= encoder_stationary_release_delay_ms) {
- unregister_joystick_button(CCW_JOYSTICK_BUTTON);
- unregister_joystick_button(CW_JOYSTICK_BUTTON);
- }
-}
-
-const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
- [0] = { ENCODER_CCW_CW(
- CCW_MACRO,
- CW_MACRO
- ) },
- [1] = { ENCODER_CCW_CW(_______, _______) },
-};
-#endif
diff --git a/keyboards/synthlabs/solo/keymaps/iidx/readme.md b/keyboards/synthlabs/solo/keymaps/iidx/readme.md
deleted file mode 100644
index f56fa622d3..0000000000
--- a/keyboards/synthlabs/solo/keymaps/iidx/readme.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# IIDX Synth Labs Solo Layout
-
-This keymap is intended for usage as a gamepad for [beatmania IIDX INFINITAS](https://p.eagate.573.jp/game/infinitas/2/index.html).
-
-This keycap follows the default keymapping for the game, shown here:
-
-![Default Keymapping Settings Screen](https://i.imgur.com/Va48FnZ.png)
-
-The face buttons correspond directly to ボタン 1 - ボタン 7
-
-Turning the knob clockwise corresponds to スクラッチ-右回転
-Turning the knob counter-clockwise corresponds to スクラッチ-左回転
-
-While holding down the knob button
-* The bottom row of face buttons corresponds to ボタン E1 - ボタン E4
-* The top-left and top-right face buttons correspond to ボタン 1 and ボタン 2, for adjustment of in-game scroll speed
diff --git a/keyboards/synthlabs/solo/keymaps/iidx/rules.mk b/keyboards/synthlabs/solo/keymaps/iidx/rules.mk
deleted file mode 100644
index 550de16143..0000000000
--- a/keyboards/synthlabs/solo/keymaps/iidx/rules.mk
+++ /dev/null
@@ -1,3 +0,0 @@
-JOYSTICK_ENABLE = yes
-DEBOUNCE_TYPE = sym_eager_pk
-ENCODER_MAP_ENABLE = yes