Remove more HAVE_COCOA ifdefs

This commit is contained in:
twinaphex 2015-11-29 16:28:55 +01:00
parent eaa98dafc0
commit 53277e3b1c
1 changed files with 3 additions and 8 deletions

View File

@ -28,16 +28,9 @@
#if TARGET_OS_IPHONE #if TARGET_OS_IPHONE
static bool small_keyboard_active; static bool small_keyboard_active;
#endif
static uint32_t apple_key_state[MAX_KEYS];
#if defined(HAVE_COCOATOUCH)
#define HIDKEY(X) X #define HIDKEY(X) X
#else
#elif defined(HAVE_COCOA)
/* Taken from https://github.com/depp/keycode, /* Taken from https://github.com/depp/keycode,
* check keycode.h for license. */ * check keycode.h for license. */
@ -55,6 +48,8 @@ static const unsigned char MAC_NATIVE_TO_HID[128] = {
#define HIDKEY(X) (X < 128) ? MAC_NATIVE_TO_HID[X] : 0 #define HIDKEY(X) (X < 128) ? MAC_NATIVE_TO_HID[X] : 0
#endif #endif
static uint32_t apple_key_state[MAX_KEYS];
#if TARGET_OS_IPHONE #if TARGET_OS_IPHONE
static bool handle_small_keyboard(unsigned* code, bool down) static bool handle_small_keyboard(unsigned* code, bool down)
{ {