diff --git a/Sources/nCine/Backends/Android/AndroidInputManager.cpp b/Sources/nCine/Backends/Android/AndroidInputManager.cpp index 325859a4..7462ce58 100644 --- a/Sources/nCine/Backends/Android/AndroidInputManager.cpp +++ b/Sources/nCine/Backends/Android/AndroidInputManager.cpp @@ -445,7 +445,7 @@ namespace nCine } break; case AKEY_EVENT_ACTION_UP: - if (keyboardEvent_.sym != Keys:Unknown) { + if (keyboardEvent_.sym != Keys::Unknown) { keyboardState_.keys_[keySym] = 0; } inputEventHandler_->OnKeyReleased(keyboardEvent_); diff --git a/Sources/nCine/Backends/Uwp/UwpInputManager.h b/Sources/nCine/Backends/Uwp/UwpInputManager.h index 896688d0..8ac198c5 100644 --- a/Sources/nCine/Backends/Uwp/UwpInputManager.h +++ b/Sources/nCine/Backends/Uwp/UwpInputManager.h @@ -170,7 +170,7 @@ namespace nCine static UwpGamepadInfo _gamepads[MaxNumJoysticks]; static ReadWriteLock _gamepadsSync; - static KeySym keySymValueToEnum(winrtWS::VirtualKey virtualKey); + static Keys keySymValueToEnum(winrtWS::VirtualKey virtualKey); void OnKey(const winrtWUC::CoreWindow& sender, const winrtWUC::KeyEventArgs& args); void OnAcceleratorKeyActivated(const winrtWUC::CoreDispatcher& sender, const winrtWUC::AcceleratorKeyEventArgs& args);