RetroArch
Classes | Macros | Typedefs | Enumerations | Functions | Variables
ui_cocoatouch_metal.m File Reference
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <boolean.h>
#include <file/file_path.h>
#include <queues/task_queue.h>
#include <string/stdstring.h>
#include <retro_timers.h>
#include "cocoa/cocoa_common_metal.h"
#include "../ui_companion_driver.h"
#include "../../configuration.h"
#include "../../frontend/frontend.h"
#include "../../input/drivers/cocoa_input.h"
#include "../../input/drivers_keyboard/keyboard_event_apple.h"
#include "../../retroarch.h"
Include dependency graph for ui_cocoatouch_metal.m:

Classes

category  UIEvent(iOS7Keyboard)
 
category  UIApplication(iOS7Keyboard)
 
class  RApplication
 
struct  ui_companion_cocoatouch
 

Macros

#define GSEVENT_TYPE_KEYDOWN   10
 
#define GSEVENT_TYPE_KEYUP   11
 

Typedefs

typedef struct ui_companion_cocoatouch ui_companion_cocoatouch_t
 

Enumerations

enum  {
  NSAlphaShiftKeyMask = 1 << 16, NSShiftKeyMask = 1 << 17, NSControlKeyMask = 1 << 18, NSAlternateKeyMask = 1 << 19,
  NSCommandKeyMask = 1 << 20, NSNumericPadKeyMask = 1 << 21, NSHelpKeyMask = 1 << 22, NSFunctionKeyMask = 1 << 23,
  NSDeviceIndependentModifierFlagsMask = 0xffff0000U
}
 

Functions

static void apple_rarch_exited (void)
 
static void rarch_enable_ui (void)
 
static void rarch_disable_ui (void)
 
static void ui_companion_cocoatouch_event_command (void *data, enum event_command cmd)
 
static void rarch_draw_observer (CFRunLoopObserverRef observer, CFRunLoopActivity activity, void *info)
 
void get_ios_version (int *major, int *minor)
 
float cocoagl_gfx_ctx_get_native_scale (void)
 
static void handle_touch_event (NSArray *touches)
 
int main (int argc, char *argv[])
 
static void ui_companion_cocoatouch_notify_content_loaded (void *data)
 
static void ui_companion_cocoatouch_toggle (void *data, bool force)
 
static int ui_companion_cocoatouch_iterate (void *data, unsigned action)
 
static void ui_companion_cocoatouch_deinit (void *data)
 
static voidui_companion_cocoatouch_init (void)
 
static void ui_companion_cocoatouch_notify_list_pushed (void *data, file_list_t *list, file_list_t *menu_list)
 
static void ui_companion_cocoatouch_notify_refresh (void *data)
 
static void ui_companion_cocoatouch_render_messagebox (const char *msg)
 
static void ui_companion_cocoatouch_msg_queue_push (void *data, const char *msg, unsigned priority, unsigned duration, bool flush)
 

Variables

static char msg_old [PATH_MAX_LENGTH]
 
id< ApplePlatformapple_platform
 
static CFRunLoopObserverRef iterate_observer
 
apple_frontend_settings_t apple_frontend_settings
 
static size_t old_size = 0
 
ui_companion_driver_t ui_companion_cocoatouch
 

Macro Definition Documentation

◆ GSEVENT_TYPE_KEYDOWN

#define GSEVENT_TYPE_KEYDOWN   10

◆ GSEVENT_TYPE_KEYUP

#define GSEVENT_TYPE_KEYUP   11

Typedef Documentation

◆ ui_companion_cocoatouch_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NSAlphaShiftKeyMask 
NSShiftKeyMask 
NSControlKeyMask 
NSAlternateKeyMask 
NSCommandKeyMask 
NSNumericPadKeyMask 
NSHelpKeyMask 
NSFunctionKeyMask 
NSDeviceIndependentModifierFlagsMask 

Function Documentation

◆ apple_rarch_exited()

static void apple_rarch_exited ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cocoagl_gfx_ctx_get_native_scale()

float cocoagl_gfx_ctx_get_native_scale ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_ios_version()

void get_ios_version ( int *  major,
int *  minor 
)

◆ handle_touch_event()

static void handle_touch_event ( NSArray *  touches)
static
Here is the call graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ rarch_disable_ui()

static void rarch_disable_ui ( void  )
static
Here is the call graph for this function:

◆ rarch_draw_observer()

static void rarch_draw_observer ( CFRunLoopObserverRef  observer,
CFRunLoopActivity  activity,
void info 
)
static
Here is the call graph for this function:

◆ rarch_enable_ui()

static void rarch_enable_ui ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ui_companion_cocoatouch_deinit()

static void ui_companion_cocoatouch_deinit ( void data)
static
Here is the call graph for this function:

◆ ui_companion_cocoatouch_event_command()

static void ui_companion_cocoatouch_event_command ( void data,
enum event_command  cmd 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ui_companion_cocoatouch_init()

static void* ui_companion_cocoatouch_init ( void  )
static
Here is the call graph for this function:

◆ ui_companion_cocoatouch_iterate()

static int ui_companion_cocoatouch_iterate ( void data,
unsigned  action 
)
static
Here is the call graph for this function:

◆ ui_companion_cocoatouch_msg_queue_push()

static void ui_companion_cocoatouch_msg_queue_push ( void data,
const char *  msg,
unsigned  priority,
unsigned  duration,
bool  flush 
)
static

◆ ui_companion_cocoatouch_notify_content_loaded()

static void ui_companion_cocoatouch_notify_content_loaded ( void data)
static
Here is the call graph for this function:

◆ ui_companion_cocoatouch_notify_list_pushed()

static void ui_companion_cocoatouch_notify_list_pushed ( void data,
file_list_t list,
file_list_t menu_list 
)
static
Here is the call graph for this function:

◆ ui_companion_cocoatouch_notify_refresh()

static void ui_companion_cocoatouch_notify_refresh ( void data)
static
Here is the call graph for this function:

◆ ui_companion_cocoatouch_render_messagebox()

static void ui_companion_cocoatouch_render_messagebox ( const char *  msg)
static
Here is the call graph for this function:

◆ ui_companion_cocoatouch_toggle()

static void ui_companion_cocoatouch_toggle ( void data,
bool  force 
)
static
Here is the call graph for this function:

Variable Documentation

◆ apple_frontend_settings

apple_frontend_settings_t apple_frontend_settings

◆ apple_platform

id<ApplePlatform> apple_platform

◆ iterate_observer

CFRunLoopObserverRef iterate_observer
static

◆ msg_old

char msg_old[PATH_MAX_LENGTH]
static

◆ old_size

size_t old_size = 0
static

◆ ui_companion_cocoatouch

Initial value:
= {
NULL,
NULL,
"cocoatouch",
}
static void * ui_companion_cocoatouch_init(void)
Definition: ui_cocoatouch_metal.m:628
ui_browser_window_t ui_browser_window_null
Definition: ui_null_browser_window.c:34
static void ui_companion_cocoatouch_event_command(void *data, enum event_command cmd)
Definition: ui_cocoatouch_metal.m:78
ui_msg_window_t ui_msg_window_null
Definition: ui_null_msg_window.c:44
static void ui_companion_cocoatouch_render_messagebox(const char *msg)
Definition: ui_cocoatouch_metal.m:678
ui_window_t ui_window_null
Definition: ui_null_window.c:55
static void ui_companion_cocoatouch_msg_queue_push(void *data, const char *msg, unsigned priority, unsigned duration, bool flush)
Definition: ui_cocoatouch_metal.m:689
ui_application_t ui_application_null
Definition: ui_null_application.c:43
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void ui_companion_cocoatouch_toggle(void *data, bool force)
Definition: ui_cocoatouch_metal.m:596
static int ui_companion_cocoatouch_iterate(void *data, unsigned action)
Definition: ui_cocoatouch_metal.m:606
static void ui_companion_cocoatouch_deinit(void *data)
Definition: ui_cocoatouch_metal.m:618
static void ui_companion_cocoatouch_notify_refresh(void *data)
Definition: ui_cocoatouch_metal.m:670
static void ui_companion_cocoatouch_notify_content_loaded(void *data)
Definition: ui_cocoatouch_metal.m:586
static void ui_companion_cocoatouch_notify_list_pushed(void *data, file_list_t *list, file_list_t *menu_list)
Definition: ui_cocoatouch_metal.m:643