#include "ppg_action.h"
#include "ppg_token.h"
#include "ppg_input.h"
#include "ppg_layer.h"
Go to the source code of this file.
|
#define | PPG_TAP_DEFINITIONS(...) |
| Auxiliary macro to simplify passing tap definitions. More...
|
|
#define | PPG_TAP(TAP_COUNT, ACTION) (PPG_Tap_Definition) { .action = ACTION, .tap_count = TAP_COUNT } |
| This macro simplifies the specification of taps as actions that are associated with specific a number of taps. More...
|
|
#define PPG_TAP |
( |
|
TAP_COUNT, |
|
|
|
ACTION |
|
) |
| (PPG_Tap_Definition) { .action = ACTION, .tap_count = TAP_COUNT } |
This macro simplifies the specification of taps as actions that are associated with specific a number of taps.
- Parameters
-
TAP_COUNT | The number of taps the action is associated with |
ACTION | The action |
#define PPG_TAP_DEFINITIONS |
( |
|
... | ) |
|
Value:
A tap specification.
Definition: ppg_tap_dance.h:31
Auxiliary macro to simplify passing tap definitions.
- Parameters
-
Defines a tap dance.
Tap dances are a sequence of input presses of the same input. With each press an action can be associated. As an enhancement to the original tap dance idea. It is also possible to fall back to the last action if e.g. an action is defined for three input presses and five input presses. If default_action_flags contains PPG_Action_Fallback the action associated with the next lower amount of input presses is triggered, in this example the action associated with three presses.
- Parameters
-
layer | The layer the pattern is associated with |
input | The input the tap dance is associated with |
n_tap_definitions | The number of tap definitions |
tap_definitions | A tap definitions array. |
- Returns
- The constructed token