keyboardio-model100-firmware/TapDance.cpp

26 lines
599 B
C++
Raw Normal View History

#include <Kaleidoscope.h>
#include "TapDance.h"
namespace gpolonkai {
namespace TapDance {
bool cancelOneShot = false;
}
}
void
tapDanceAction(
uint8_t tap_dance_index,
KeyAddr key_addr,
uint8_t tap_count,
kaleidoscope::plugin::TapDance::ActionType tap_dance_action
)
{
switch (tap_dance_index) {
case LEFT_PARENS:
return tapDanceActionKeys(tap_count, tap_dance_action, LSHIFT(Key_8), RALT(Key_F), RALT(Key_B));
case RIGHT_PARENS:
return tapDanceActionKeys(tap_count, tap_dance_action, LSHIFT(Key_9), RALT(Key_G), RALT(Key_N));
}
}