diff --git a/ext/reflex/key_event.cpp b/ext/reflex/key_event.cpp index 125338b..e428b89 100644 --- a/ext/reflex/key_event.cpp +++ b/ext/reflex/key_event.cpp @@ -123,7 +123,7 @@ RUCY_DEF0(get_key) CASE(LBRACKET): SYMBOL1(lbracket); CASE(RBRACKET): SYMBOL1(rbracket); -#ifdef OSX +#if defined(OSX) || defined(IOS) CASE(ENTER): SYMBOL1(enter); #else CASE(ENTER): SYMBOL1(enter); @@ -145,7 +145,7 @@ RUCY_DEF0(get_key) CASE(PAGEUP): SYMBOL1(pageup); CASE(PAGEDOWN): SYMBOL1(pagedown); -#ifdef OSX +#if defined(OSX) || defined(IOS) CASE(LSHIFT): CASE(RSHIFT): SYMBOL1(shift); CASE(LCONTROL): diff --git a/include/reflex/defs.h b/include/reflex/defs.h index d4c41b3..686f53c 100644 --- a/include/reflex/defs.h +++ b/include/reflex/defs.h @@ -68,7 +68,7 @@ namespace Reflex KEY_NONE = -1, - #ifdef OSX + #if defined(OSX) || defined(IOS) #define NATIVE_VK(osx) osx #endif diff --git a/src/ios/view_controller.mm b/src/ios/view_controller.mm index cb51f2e..037632e 100644 --- a/src/ios/view_controller.mm +++ b/src/ios/view_controller.mm @@ -3,7 +3,7 @@ #include -#include +#include #include "reflex/exception.h" #include "../view.h" #include "../pointer.h"