mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 03:10:14 +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 GLContextClass* g_context;
|
||||
static GLContextClass* g_hw_ctx;
|
||||
|
||||
|
||||
@implementation RAGameView
|
||||
|
@ -9,7 +9,6 @@ static bool g_use_hw_ctx;
|
||||
#ifdef OSX
|
||||
static bool g_has_went_fullscreen;
|
||||
static NSOpenGLPixelFormat* g_format;
|
||||
static NSOpenGLContext *g_hw_ctx;
|
||||
#endif
|
||||
|
||||
static unsigned g_minor = 0;
|
||||
|
@ -298,6 +298,7 @@ bool apple_joypad_has_interface(uint32_t slot)
|
||||
|
||||
static int hid_init_manager(void)
|
||||
{
|
||||
#ifdef OSX
|
||||
CFMutableArrayRef matcher;
|
||||
|
||||
g_hid_manager = IOHIDManagerCreate(
|
||||
@ -317,12 +318,14 @@ static int hid_init_manager(void)
|
||||
IOHIDManagerScheduleWithRunLoop(g_hid_manager, CFRunLoopGetMain(), kCFRunLoopCommonModes);
|
||||
|
||||
IOHIDManagerOpen(g_hid_manager, kIOHIDOptionsTypeNone);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int hid_exit(void)
|
||||
{
|
||||
#ifdef OSX
|
||||
if (g_hid_manager)
|
||||
{
|
||||
IOHIDManagerClose(g_hid_manager, kIOHIDOptionsTypeNone);
|
||||
@ -332,6 +335,7 @@ static int hid_exit(void)
|
||||
CFRelease(g_hid_manager);
|
||||
}
|
||||
g_hid_manager = NULL;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user