RetroArch
Functions | Variables
cocoa_input.c File Reference
#include <stdint.h>
#include <unistd.h>
#include <retro_miscellaneous.h>
#include "../input_driver.h"
#include "../input_keymaps.h"
#include "cocoa_input.h"
#include "../../gfx/video_driver.h"
#include "../../driver.h"
#include "../drivers_keyboard/keyboard_event_apple.h"
Include dependency graph for cocoa_input.c:

Functions

float get_backing_scale_factor (void)
 
int32_t cocoa_input_find_any_key (void)
 
static int cocoa_input_find_any_button_ret (cocoa_input_data_t *apple, input_bits_t *state, unsigned port)
 
int32_t cocoa_input_find_any_button (uint32_t port)
 
int32_t cocoa_input_find_any_axis (uint32_t port)
 
static voidcocoa_input_init (const char *joypad_driver)
 
static void cocoa_input_poll (void *data)
 
static int16_t cocoa_mouse_state (cocoa_input_data_t *apple, unsigned id)
 
static int16_t cocoa_mouse_state_screen (cocoa_input_data_t *apple, unsigned id)
 
static int16_t cocoa_pointer_state (cocoa_input_data_t *apple, unsigned device, unsigned idx, unsigned id)
 
static int16_t cocoa_input_state (void *data, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned idx, unsigned id)
 
static void cocoa_input_free (void *data)
 
static bool cocoa_input_set_rumble (void *data, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
 
static uint64_t cocoa_input_get_capabilities (void *data)
 
static void cocoa_input_grab_mouse (void *data, bool state)
 
static const input_device_driver_tcocoa_input_get_sec_joypad_driver (void *data)
 
static const input_device_driver_tcocoa_input_get_joypad_driver (void *data)
 
static bool cocoa_input_keyboard_mapping_is_blocked (void *data)
 
static void cocoa_input_keyboard_mapping_set_block (void *data, bool value)
 

Variables

input_driver_t input_cocoa
 

Function Documentation

◆ cocoa_input_find_any_axis()

int32_t cocoa_input_find_any_axis ( uint32_t  port)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cocoa_input_find_any_button()

int32_t cocoa_input_find_any_button ( uint32_t  port)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cocoa_input_find_any_button_ret()

static int cocoa_input_find_any_button_ret ( cocoa_input_data_t apple,
input_bits_t state,
unsigned  port 
)
static
Here is the caller graph for this function:

◆ cocoa_input_find_any_key()

int32_t cocoa_input_find_any_key ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cocoa_input_free()

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

◆ cocoa_input_get_capabilities()

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

◆ cocoa_input_get_joypad_driver()

static const input_device_driver_t* cocoa_input_get_joypad_driver ( void data)
static

◆ cocoa_input_get_sec_joypad_driver()

static const input_device_driver_t* cocoa_input_get_sec_joypad_driver ( void data)
static

◆ cocoa_input_grab_mouse()

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

◆ cocoa_input_init()

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

◆ cocoa_input_keyboard_mapping_is_blocked()

static bool cocoa_input_keyboard_mapping_is_blocked ( void data)
static

◆ cocoa_input_keyboard_mapping_set_block()

static void cocoa_input_keyboard_mapping_set_block ( void data,
bool  value 
)
static

◆ cocoa_input_poll()

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

◆ cocoa_input_set_rumble()

static bool cocoa_input_set_rumble ( void data,
unsigned  port,
enum retro_rumble_effect  effect,
uint16_t  strength 
)
static
Here is the call graph for this function:

◆ cocoa_input_state()

static int16_t cocoa_input_state ( void data,
rarch_joypad_info_t  joypad_info,
const struct retro_keybind **  binds,
unsigned  port,
unsigned  device,
unsigned  idx,
unsigned  id 
)
static
Here is the call graph for this function:

◆ cocoa_mouse_state()

static int16_t cocoa_mouse_state ( cocoa_input_data_t apple,
unsigned  id 
)
static
Here is the caller graph for this function:

◆ cocoa_mouse_state_screen()

static int16_t cocoa_mouse_state_screen ( cocoa_input_data_t apple,
unsigned  id 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cocoa_pointer_state()

static int16_t cocoa_pointer_state ( cocoa_input_data_t apple,
unsigned  device,
unsigned  idx,
unsigned  id 
)
static
Here is the caller graph for this function:

◆ get_backing_scale_factor()

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

Variable Documentation

◆ input_cocoa

input_driver_t input_cocoa
Initial value:
= {
"cocoa",
}
static int16_t cocoa_input_state(void *data, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned idx, unsigned id)
Definition: cocoa_input.c:291
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void cocoa_input_free(void *data)
Definition: cocoa_input.c:334
static bool cocoa_input_set_rumble(void *data, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
Definition: cocoa_input.c:354
static void cocoa_input_keyboard_mapping_set_block(void *data, bool value)
Definition: cocoa_input.c:415
static const input_device_driver_t * cocoa_input_get_joypad_driver(void *data)
Definition: cocoa_input.c:398
static bool cocoa_input_keyboard_mapping_is_blocked(void *data)
Definition: cocoa_input.c:407
static const input_device_driver_t * cocoa_input_get_sec_joypad_driver(void *data)
Definition: cocoa_input.c:389
static uint64_t cocoa_input_get_capabilities(void *data)
Definition: cocoa_input.c:370
static void cocoa_input_poll(void *data)
Definition: cocoa_input.c:157
static void * cocoa_input_init(const char *joypad_driver)
Definition: cocoa_input.c:140
static void cocoa_input_grab_mouse(void *data, bool state)
Definition: cocoa_input.c:382