1
0

Update keycodes

This commit is contained in:
Drashna Jaelre
2018-11-02 10:09:45 -07:00
parent be2c6e70a7
commit 5015c2b4d2
2 changed files with 17 additions and 10 deletions

View File

@@ -147,31 +147,31 @@ void send_unicode_hex_string(const char *str) {
bool process_record_unicode_common(uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) {
switch (keycode) {
case UNI_OSX:
case UNICODE_MODE_OSX:
set_unicode_input_mode(UC_OSX);
#if defined(AUDIO_ENABLE) && defined(UNICODE_OSX_SONG)
PLAY_SONG(UNICODE_OSX_SONG);
#endif
break;
case UNI_LINUX:
case UNICODE_MODE_LINUX:
set_unicode_input_mode(UC_LNX);
#if defined(AUDIO_ENABLE) && defined(UNICODE_LINUX_SONG)
PLAY_SONG(UNICODE_LINUX_SONG);
#endif
break;
case UNI_WIN:
case UNICODE_MODE_WINDOWS:
set_unicode_input_mode(UC_WIN);
#if defined(AUDIO_ENABLE) && defined(UNICODE_WINDOWS_SONG)
PLAY_SONG(UNICODE_WINDOWS_SONG);
#endif
break;
case UNI_WINC:
case UNICODE_MODE_WIN_COMPOSE:
set_unicode_input_mode(UC_WINC);
#if defined(AUDIO_ENABLE) && defined(UNICODE_WIN_COMPOSE_SONG)
PLAY_SONG(UNICODE_WIN_COMPOSE_SONG);
#endif
break;
case UNI_OSX_RALT:
case UNICODE_MODE_OSX_RALT:
set_unicode_input_mode(UC_OSX_RALT);
#if defined(AUDIO_ENABLE) && defined(UNICODE_OSX_RALT_SONG)
PLAY_SONG(UNICODE_OSX_RALT_SONG);