aboutsummaryrefslogtreecommitdiffstats
path: root/users
diff options
context:
space:
mode:
authorSpacebarRacecar <42380065+SpacebarRacecar@users.noreply.github.com>2019-06-17 02:35:20 +0200
committerDrashna Jaelre <drashna@live.com>2019-06-16 17:35:20 -0700
commit83754c114684109b3ac37683e208a5e6e627272b (patch)
treedeb2219f60c39353556ec329c41c0f49b594d991 /users
parent53a81fc2f681eda7267804eb990bc24c4ef58512 (diff)
downloadfirmware-83754c114684109b3ac37683e208a5e6e627272b.tar.gz
firmware-83754c114684109b3ac37683e208a5e6e627272b.tar.bz2
firmware-83754c114684109b3ac37683e208a5e6e627272b.zip
[Keymap] Update to personal keymaps (#6136)
* changes to keymaps * changes to userspace * changes to userspace * removed reference to fc660c keymap which no longer exists from userspace readme * removed preonic keymap
Diffstat (limited to 'users')
-rw-r--r--users/spacebarracecar/readme.md2
-rw-r--r--users/spacebarracecar/spacebarracecar.c10
-rw-r--r--users/spacebarracecar/spacebarracecar.h2
3 files changed, 13 insertions, 1 deletions
diff --git a/users/spacebarracecar/readme.md b/users/spacebarracecar/readme.md
index 172764c07..3d9ceb80c 100644
--- a/users/spacebarracecar/readme.md
+++ b/users/spacebarracecar/readme.md
@@ -14,7 +14,7 @@ I'm using the US Ansi layout however I'm living in Germany which means that ever
- The keycodes are handled by the `process_record_user` function which is now located in [spacebarracecar.c](spacebarracecar.c). To change keyboard specific configuration `process_record_keymap` is used (see [drashna userspace readme](../drashna/readme.md) for better explanation).
- There is a predefined `_DEADKEY` layer in [spacebarracecar.h](spacebarracecar.h) under `enum userspace_layers`. Shifted CU_QUOT enables the dead key layer, just like KC_QUOT would when using the US International layout. (See `enum userspace_custom_keycodes` for more explanation).
- On Windows grave and circonflexe are defined as dead keys when using the standard german layout. Those are automatically escaped when using the custom keycodes. `CU_ESCT` can be used to enable/disable this behavior.
-- For a complete example see my [fc660c](../../keyboards/fc660c/keymaps/spacebarracecar/keymap.c) or [planck](../../keyboards/planck/keymaps/spacebarracecar/keymap.c) keymaps.
+- For a complete example see my [planck](../../keyboards/planck/keymaps/spacebarracecar/keymap.c) keymap.
### How it works
diff --git a/users/spacebarracecar/spacebarracecar.c b/users/spacebarracecar/spacebarracecar.c
index 2ab10d945..bbd864aa9 100644
--- a/users/spacebarracecar/spacebarracecar.c
+++ b/users/spacebarracecar/spacebarracecar.c
@@ -71,6 +71,11 @@ void timer_timeout(void){
rshiftp = false;
#endif
navesc = false;
+ timer_timeout_keymap();
+}
+
+__attribute__((weak))
+void timer_timeout_keymap(void){
}
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
@@ -340,3 +345,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return process_record_keymap(keycode, record);
}
}
+
+__attribute__((weak))
+bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
+ return true;
+}
diff --git a/users/spacebarracecar/spacebarracecar.h b/users/spacebarracecar/spacebarracecar.h
index 690971c39..43bfc5e65 100644
--- a/users/spacebarracecar/spacebarracecar.h
+++ b/users/spacebarracecar/spacebarracecar.h
@@ -75,6 +75,8 @@ extern bool game;
void timer_timeout(void);
+void timer_timeout_keymap(void);
+
bool process_record_keymap(uint16_t keycode, keyrecord_t *record);
#define CTRLX LCTL(KC_X)