Commit Graph

2515 Commits (44e16ffc80620b61eaa17aedcfdd8233d9c99bd9)
 

Author SHA1 Message Date
Gergely Nagy 44e16ffc80 tap-dance: Code cleanup
Removes a number of duplicated code, by passing actions around instead
of keycodes, so the various dance action functions do not have to look
up the action, but the caller does that for them.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
9 years ago
Gergely Nagy ce8cc9219f tap-dance: Support user_data for the callbacks
Refactored the code a little, so all callbacks now receive a `user_data`
pointer, which can be anything. As an example, the key pairs from
`ACTION_TAP_DANCE_DOUBLE` now use this, and custom, built-in functions.

This makes it easier to extend the tap dance functionality, and also
simplifies the code a little.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
9 years ago
Gergely Nagy 70e42489de tap-dance: Support for holding keys
With this change, tap dance will now store the pressed state of the
tap-dance key, and allow one to make an action sooner, while the key is
still held, and only unregister when the key is released.

The registration must happen in the `on_dance_finished` callback, while
unregistering goes to `on_reset`. The surrounding code makes sure not to
call either multiple times.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
9 years ago
Jack Humbert 8e1d96983a Merge pull request #543 from VoodaGod/bone2planck
updated bone2planck
9 years ago
Jack Humbert 66fed12c98 Merge pull request #541 from milestogo/master
initial kinisis advantage build
9 years ago
Jack Humbert 5249b4451c Merge pull request #540 from replicaJunction/feature-atreus-keymapFunction
Adjusted Atreus KEYMAP() function.
9 years ago
Jack Humbert fb0bba5981 Merge pull request #538 from robertdale/preonic-map-correction
Preonic: Corrected the ascii layout to match the coded layout
9 years ago
Jack Humbert d5d2eb8b5a Merge pull request #536 from pvinis/debug-doc
add some debugging doc, after i found out how to print debug messages
9 years ago
Jack Humbert 6f9f9baff4 Merge pull request #530 from sethbc/master
Misc. fixes from sethbc
9 years ago
Jack Humbert 26546f995f Merge pull request #529 from CommandLineDesign/CMD60-newKeymap
Added CMD60 keymap
9 years ago
Jack Humbert 2bed835a33 Merge pull request #525 from edasque/master
Added Docker as a simple way to build firmwares
9 years ago
Jack Humbert fc9f128648 Merge pull request #522 from exiva/extrakey-macfix
Fix OS X Recognizing keyboard as Mouse/Tablet
9 years ago
Jack Humbert fc4ab870f5 Merge pull request #521 from exiva/makefile-wait
Make DFU wait for bootloader
9 years ago
Jack Humbert 940358ed4f Merge pull request #518 from jakllsch/upstream
keymap_extras changes
9 years ago
Jack Humbert 62a6d3a6f5 Merge pull request #516 from pvinis/tap-dance-anyway
Tap dance anyway
9 years ago
milestogo 24e4e6dd18 adding traveller keyboard 9 years ago
Jason Janse van Rensburg b0e9dbecee fixed include paths 9 years ago
Jason Janse van Rensburg 32f5b34ad2 reformat 9 years ago
Jason Janse van Rensburg 3d7244e604 updated bone2planck 9 years ago
milestogo 1984861338 initial kinisis advantage build 9 years ago
Joshua T 8ee9c486fd Adjusted Atreus KEYMAP() function.
This change adjusts the KEYMAP() function to provide a more visual representation of the key positions on the keyboard. Previously, keymaps have been defined directly using arrays for the Atreus keyboard. While this works, it doesn't utilize the helpful KEYMAP() function at all to allow the user to visually position the key codes for ease of editing. See the Ergodox-EZ KEYMAP() function and layouts for a great example of how this can work.

This change should not break any existing Atreus layouts. At the time of this commit, there are two existing layouts for the Atreus board, and neither use the KEYMAP() function.
9 years ago
Pavlos Vinieratos 4e6a8627d8 add a couple of comments 9 years ago
Pavlos Vinieratos d5daec2a58 on_each_tap_fn is called on tap down and tap up 9 years ago
Pavlos Vinieratos 2e815ad9a2 add link to hid_listen 9 years ago
Robert Dale 9c26498f49 added Midi On/Off; Enter is actually transparent 9 years ago
Robert Dale 47223ebee4 Corrected the ascii layout to match the coded layout 9 years ago
Pavlos Vinieratos 6eb21d2680 add some debugging doc, after i found out how to print debug messages 9 years ago
Pavlos Vinieratos d8a979b6d5 add a bit of documentation 9 years ago
Pavlos Vinieratos dda2fd6ff3 in the default case, it should be called if there is actually a tap
dance happening, and in the normal case, it should be called when the
tap down is happening.
9 years ago
Seth Chandler d40d18ab1a don't believe the hex files are posted to qmk.fm 9 years ago
Seth Chandler f6aeaac5b5 update more non-existent readmes for QMK.fm 9 years ago
Seth Chandler 0a2653bac8 update broken link 9 years ago
Seth Chandler 68b1affbbd update audio links 9 years ago
Seth Chandler 45414fed7b update tmk link 9 years ago
Seth Chandler a95ab37162 update link to Vagrant docfile 9 years ago
Seth Chandler 38508180c7 update readmes in certain directories to work with qmk.fm 9 years ago
Pavlos Vinieratos d3091faf36 change naming, and remove extraneous definition 9 years ago
Seth Chandler 6289332759 add custom makefile for sethbc keymap 9 years ago
Seth Chandler f954223749 update makefile to default to no virtual dip switches 9 years ago
Seth Chandler dddaebfa98 update readme images 9 years ago
Jonathan Lucas 2877b858d3 Fix erroneous character
Must have been keeb testing :)
9 years ago
Jonathan Lucas f13f48a35e Added CMD60 keymap 9 years ago
Pavlos Vinieratos f3b56701ed add an `anyway` and a `reset` callback
when using tap dance, we have the `regular` callback that is called on
the last tap. this commit adds an `anyway` callback that is called on
every tap, and a `reset` callback that is called on reset of the tap
dance taps.
9 years ago
Pavlos Vinieratos 1a7e954f9f in case its NULL 9 years ago
Erik Dasque aa2a79bbfa Further simplyfying the docker usage
We'll be able to change the image user name if we set up the initial repo to trigger Docker images rebuilds on hub.docker.com
9 years ago
Erik Dasque 0446263935 Adding Docker build system & documentation 9 years ago
Travis La Marr d48a4cf1eb Fix OS X Recognizing keyboard as Mouse/Tablet
Modified the LUFA USB HID Descriptor to change the logical/usage
minimums for System Control from 0x01 (Mouse) to 0x81 (System Power
Down), this fixes OS X recognizing the Planck as having a mouse and
tablet, even with mousekeys off.
9 years ago
Travis La Marr 0b8c448b30 Make DFU wait for bootloader
Added a loop for waiting for the keyboard to be put in bootloader mode,
rather than failing out. Makes building keymaps easier.
9 years ago
Jonathan A. Kollasch 4278d88615 keymap_dvorak.h: add missing shifted keys, fix whitespace 9 years ago
Jonathan A. Kollasch 25938a09a6 extra_keymaps: use RALT() instead of 0x1400 for AltGr 9 years ago