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

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/1068/head
Gergely Nagy 3 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 (!active_addr_.isValid()) {
if (::HostOS.os() == hostos::OSX) {
if (::HostOS.os() == hostos::MACOS) {
event.key = Key_LeftGui;
} else {
event.key = Key_LeftAlt;

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

Loading…
Cancel
Save