mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-10 22:19:29 +00:00
sounds
This commit is contained in:
parent
4c100dbbef
commit
6e3c36360e
2 changed files with 4 additions and 2 deletions
|
@ -67,13 +67,13 @@ uint16_t hextokeycode(int hex) {
|
|||
float walk_up[][2] = {
|
||||
{440.0*pow(2.0,(60)/12.0), 400},
|
||||
{0, 50},
|
||||
{440.0*pow(2.0,(67)/12.0), 400},
|
||||
{440.0*pow(2.0,(67)/12.0), 600},
|
||||
};
|
||||
|
||||
float walk_dn[][2] = {
|
||||
{440.0*pow(2.0,(67)/12.0), 400},
|
||||
{0, 50},
|
||||
{440.0*pow(2.0,(60)/12.0), 400},
|
||||
{440.0*pow(2.0,(60)/12.0), 600},
|
||||
};
|
||||
|
||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
||||
|
|
|
@ -30,6 +30,8 @@ uint16_t hextokeycode(int hex) {
|
|||
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt)
|
||||
{
|
||||
|
||||
// For more info on how this works per OS, see here: https://en.wikipedia.org/wiki/Unicode_input#Hexadecimal_code_input
|
||||
|
||||
if (record->event.pressed) {
|
||||
uint16_t unicode = (opt << 8) | id;
|
||||
register_code(KC_LALT);
|
||||
|
|
Loading…
Reference in a new issue