mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-10 13:02:27 +00:00
(iOS) Build fixes
This commit is contained in:
parent
764e7f930d
commit
d8100d299a
@ -77,6 +77,7 @@ static UIView *g_pause_indicator_view;
|
|||||||
|
|
||||||
static RAGameView* g_instance;
|
static RAGameView* g_instance;
|
||||||
static GLContextClass* g_context;
|
static GLContextClass* g_context;
|
||||||
|
static GLContextClass* g_hw_ctx;
|
||||||
|
|
||||||
|
|
||||||
@implementation RAGameView
|
@implementation RAGameView
|
||||||
|
@ -9,7 +9,6 @@ static bool g_use_hw_ctx;
|
|||||||
#ifdef OSX
|
#ifdef OSX
|
||||||
static bool g_has_went_fullscreen;
|
static bool g_has_went_fullscreen;
|
||||||
static NSOpenGLPixelFormat* g_format;
|
static NSOpenGLPixelFormat* g_format;
|
||||||
static NSOpenGLContext *g_hw_ctx;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static unsigned g_minor = 0;
|
static unsigned g_minor = 0;
|
||||||
|
@ -298,6 +298,7 @@ bool apple_joypad_has_interface(uint32_t slot)
|
|||||||
|
|
||||||
static int hid_init_manager(void)
|
static int hid_init_manager(void)
|
||||||
{
|
{
|
||||||
|
#ifdef OSX
|
||||||
CFMutableArrayRef matcher;
|
CFMutableArrayRef matcher;
|
||||||
|
|
||||||
g_hid_manager = IOHIDManagerCreate(
|
g_hid_manager = IOHIDManagerCreate(
|
||||||
@ -317,12 +318,14 @@ static int hid_init_manager(void)
|
|||||||
IOHIDManagerScheduleWithRunLoop(g_hid_manager, CFRunLoopGetMain(), kCFRunLoopCommonModes);
|
IOHIDManagerScheduleWithRunLoop(g_hid_manager, CFRunLoopGetMain(), kCFRunLoopCommonModes);
|
||||||
|
|
||||||
IOHIDManagerOpen(g_hid_manager, kIOHIDOptionsTypeNone);
|
IOHIDManagerOpen(g_hid_manager, kIOHIDOptionsTypeNone);
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hid_exit(void)
|
static int hid_exit(void)
|
||||||
{
|
{
|
||||||
|
#ifdef OSX
|
||||||
if (g_hid_manager)
|
if (g_hid_manager)
|
||||||
{
|
{
|
||||||
IOHIDManagerClose(g_hid_manager, kIOHIDOptionsTypeNone);
|
IOHIDManagerClose(g_hid_manager, kIOHIDOptionsTypeNone);
|
||||||
@ -332,6 +335,7 @@ static int hid_exit(void)
|
|||||||
CFRelease(g_hid_manager);
|
CFRelease(g_hid_manager);
|
||||||
}
|
}
|
||||||
g_hid_manager = NULL;
|
g_hid_manager = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user