diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-05 22:49:06 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-05 22:49:06 +0200 |
commit | b7deb632513795e495e9a3aa76a9400fef4de364 (patch) | |
tree | f57006f6fee9b79aea3182df5f0c3b28e9fc71eb /src/ui/inputwidget.c | |
parent | 52f3c7e158ee9436ee82f602ee9a6212dd54b776 (diff) |
Experimenting with an iOS build
iPlatformApple applies to both macOS and iOS. Added iPlatformAppleDesktop and iPlatformAppleMobile to make a distinction between the two.
IssueID #96
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r-- | src/ui/inputwidget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index 1674040b..2d767152 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c | |||
@@ -31,7 +31,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
31 | #include <SDL_clipboard.h> | 31 | #include <SDL_clipboard.h> |
32 | #include <SDL_timer.h> | 32 | #include <SDL_timer.h> |
33 | 33 | ||
34 | #if defined (iPlatformApple) | 34 | #if defined (iPlatformAppleDesktop) |
35 | # include "macos.h" | 35 | # include "macos.h" |
36 | #endif | 36 | #endif |
37 | 37 | ||
@@ -39,7 +39,7 @@ static const int refreshInterval_InputWidget_ = 256; | |||
39 | static const size_t maxUndo_InputWidget_ = 64; | 39 | static const size_t maxUndo_InputWidget_ = 64; |
40 | 40 | ||
41 | static void enableEditorKeysInMenus_(iBool enable) { | 41 | static void enableEditorKeysInMenus_(iBool enable) { |
42 | #if defined (iPlatformApple) | 42 | #if defined (iPlatformAppleDesktop) |
43 | enableMenuItemsByKey_MacOS(SDLK_LEFT, KMOD_PRIMARY, enable); | 43 | enableMenuItemsByKey_MacOS(SDLK_LEFT, KMOD_PRIMARY, enable); |
44 | enableMenuItemsByKey_MacOS(SDLK_RIGHT, KMOD_PRIMARY, enable); | 44 | enableMenuItemsByKey_MacOS(SDLK_RIGHT, KMOD_PRIMARY, enable); |
45 | #else | 45 | #else |