aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2020-11-18 16:50:32 -0800
committerGitHub <noreply@github.com>2020-11-18 16:50:32 -0800
commite7497b3fba0c2836c9bb5087eee8b15d6ffc1362 (patch)
tree272b90a7dbe9c9b2bedd8adbacd91fe3cc5df040
parent6dc2d5956f008a706a9b0d6e911522294b76f392 (diff)
downloadqmk_firmware-e7497b3fba0c2836c9bb5087eee8b15d6ffc1362.tar.gz
qmk_firmware-e7497b3fba0c2836c9bb5087eee8b15d6ffc1362.zip
Add references for is_keyboard_left() (#10850)
* Add references for is_keyboard_left() * Remove proto from bootmagic_lite.c
-rw-r--r--tmk_core/common/bootmagic_lite.c4
-rw-r--r--tmk_core/common/keyboard.c6
-rw-r--r--tmk_core/common/keyboard.h2
3 files changed, 9 insertions, 3 deletions
diff --git a/tmk_core/common/bootmagic_lite.c b/tmk_core/common/bootmagic_lite.c
index 38275cdd3..cbf756a17 100644
--- a/tmk_core/common/bootmagic_lite.c
+++ b/tmk_core/common/bootmagic_lite.c
@@ -1,7 +1,5 @@
1#include "quantum.h" 1#include "quantum.h"
2 2
3bool is_keyboard_left(void);
4
5/** \brief Reset eeprom 3/** \brief Reset eeprom
6 * 4 *
7 * ...just incase someone wants to only change the eeprom behaviour 5 * ...just incase someone wants to only change the eeprom behaviour
@@ -48,4 +46,4 @@ __attribute__((weak)) void bootmagic_lite(void) {
48 // Jump to bootloader. 46 // Jump to bootloader.
49 bootloader_jump(); 47 bootloader_jump();
50 } 48 }
51} \ No newline at end of file 49}
diff --git a/tmk_core/common/keyboard.c b/tmk_core/common/keyboard.c
index a45af56df..b0394af00 100644
--- a/tmk_core/common/keyboard.c
+++ b/tmk_core/common/keyboard.c
@@ -222,6 +222,12 @@ void keyboard_setup(void) {
222 */ 222 */
223__attribute__((weak)) bool is_keyboard_master(void) { return true; } 223__attribute__((weak)) bool is_keyboard_master(void) { return true; }
224 224
225/** \brief is_keyboard_left
226 *
227 * FIXME: needs doc
228 */
229__attribute__((weak)) bool is_keyboard_left(void) { return true; }
230
225/** \brief should_process_keypress 231/** \brief should_process_keypress
226 * 232 *
227 * Override this function if you have a condition where keypresses processing should change: 233 * Override this function if you have a condition where keypresses processing should change:
diff --git a/tmk_core/common/keyboard.h b/tmk_core/common/keyboard.h
index 98ceca49b..79d949089 100644
--- a/tmk_core/common/keyboard.h
+++ b/tmk_core/common/keyboard.h
@@ -63,6 +63,8 @@ void keyboard_task(void);
63void keyboard_set_leds(uint8_t leds); 63void keyboard_set_leds(uint8_t leds);
64/* it runs whenever code has to behave differently on a slave */ 64/* it runs whenever code has to behave differently on a slave */
65bool is_keyboard_master(void); 65bool is_keyboard_master(void);
66/* it runs whenever code has to behave differently on left vs right split */
67bool is_keyboard_left(void);
66 68
67void keyboard_pre_init_kb(void); 69void keyboard_pre_init_kb(void);
68void keyboard_pre_init_user(void); 70void keyboard_pre_init_user(void);