Skip to content

Commit

Permalink
Fix compile errors on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
xordog committed May 19, 2024
1 parent b4cdc0b commit 58977d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ext/reflex/key_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion include/reflex/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace Reflex

KEY_NONE = -1,

#ifdef OSX
#if defined(OSX) || defined(IOS)
#define NATIVE_VK(osx) osx
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/ios/view_controller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


#include <assert.h>
#include <rays/opengl.h>
#include <rays/rays.h>
#include "reflex/exception.h"
#include "../view.h"
#include "../pointer.h"
Expand Down

0 comments on commit 58977d6

Please sign in to comment.