README.md: Improved the .row/.col documentation

It now tells the reader that the value of `.row`/`.col` is unspecified if not
triggered by a key.

Addresses part of #9.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/365/head
Gergely Nagy 8 years ago
parent 48d86894c0
commit 25093c7455

@ -21,8 +21,8 @@ complicated shortcut - the possibilities are endless!
## Using the plugin ## Using the plugin
To use the plugin, we need to include the header, make sure we `use` the plugin, To use the plugin, we need to include the header, tell the firmware to `use` the
place macros on the keymap, and create a special handler function plugin, place macros on the keymap, and create a special handler function
(`macroAction`) that will tell the plugin what shall happen when macro keys are (`macroAction`) that will tell the plugin what shall happen when macro keys are
pressed. It is best illustrated with an example: pressed. It is best illustrated with an example:
@ -112,6 +112,9 @@ The plugin provides a `Macros` object, with the following methods and properties
> triggered from if it was triggered by a key. The playback functions > triggered from if it was triggered by a key. The playback functions
> do not use these properties, but they are available, would one want to create > do not use these properties, but they are available, would one want to create
> a macro that needs to know which key triggered it. > a macro that needs to know which key triggered it.
>
> When the macro was not triggered by a key the value of these properties are
> unspecified.
## Macro helpers ## Macro helpers

Loading…
Cancel
Save