Switch from using hostos::OSX to hostos::MACOS

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/1068/head
Gergely Nagy 4 years ago
parent 8328bd7be2
commit e576b78ba7
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -40,7 +40,7 @@ EventHandlerResult AppSwitcher::onKeyEvent(KeyEvent &event) {
// If AppSwitcher was not already active, hold its modifier first. // If AppSwitcher was not already active, hold its modifier first.
if (!active_addr_.isValid()) { if (!active_addr_.isValid()) {
if (::HostOS.os() == hostos::OSX) { if (::HostOS.os() == hostos::MACOS) {
event.key = Key_LeftGui; event.key = Key_LeftGui;
} else { } else {
event.key = Key_LeftAlt; event.key = Key_LeftAlt;

@ -42,7 +42,7 @@ void Unicode::start(void) {
kaleidoscope::Runtime.hid().keyboard().releaseRawKey(Key_KeypadAdd); kaleidoscope::Runtime.hid().keyboard().releaseRawKey(Key_KeypadAdd);
kaleidoscope::Runtime.hid().keyboard().sendReport(); kaleidoscope::Runtime.hid().keyboard().sendReport();
break; break;
case hostos::OSX: case hostos::MACOS:
kaleidoscope::Runtime.hid().keyboard().pressRawKey(Key_LeftAlt); kaleidoscope::Runtime.hid().keyboard().pressRawKey(Key_LeftAlt);
break; break;
default: default:
@ -56,7 +56,7 @@ void Unicode::input(void) {
case hostos::LINUX: case hostos::LINUX:
break; break;
case hostos::WINDOWS: case hostos::WINDOWS:
case hostos::OSX: case hostos::MACOS:
kaleidoscope::Runtime.hid().keyboard().pressRawKey(Key_LeftAlt); kaleidoscope::Runtime.hid().keyboard().pressRawKey(Key_LeftAlt);
break; break;
default: default:
@ -75,7 +75,7 @@ void Unicode::end(void) {
kaleidoscope::Runtime.hid().keyboard().sendReport(); kaleidoscope::Runtime.hid().keyboard().sendReport();
break; break;
case hostos::WINDOWS: case hostos::WINDOWS:
case hostos::OSX: case hostos::MACOS:
kaleidoscope::Runtime.hid().keyboard().releaseRawKey(Key_LeftAlt); kaleidoscope::Runtime.hid().keyboard().releaseRawKey(Key_LeftAlt);
kaleidoscope::Runtime.hid().keyboard().sendReport(); kaleidoscope::Runtime.hid().keyboard().sendReport();
break; break;

Loading…
Cancel
Save