RetroArch
Macros | Enumerations | Functions | Variables
mfi_joypad.m File Reference
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <limits.h>
#include <errno.h>
#include <boolean.h>
#include <AvailabilityMacros.h>
#import "../include/GameController/GameController.h"
Include dependency graph for mfi_joypad.m:

Macros

#define MAX_MFI_CONTROLLERS   4
 

Enumerations

enum  { GCCONTROLLER_PLAYER_INDEX_UNSET = -1 }
 

Functions

static bool apple_gamecontroller_available (void)
 
static void apple_gamecontroller_joypad_poll_internal (GCController *controller)
 
static void apple_gamecontroller_joypad_poll (void)
 
static void apple_gamecontroller_joypad_register (GCGamepad *gamepad)
 
static void apple_gamecontroller_joypad_connect (GCController *controller)
 
static void apple_gamecontroller_joypad_disconnect (GCController *controller)
 
bool apple_gamecontroller_joypad_init (void *data)
 
static void apple_gamecontroller_joypad_destroy (void)
 
static bool apple_gamecontroller_joypad_button (unsigned port, uint16_t joykey)
 
static void apple_gamecontroller_joypad_get_buttons (unsigned port, input_bits_t *state)
 
static int16_t apple_gamecontroller_joypad_axis (unsigned port, uint32_t joyaxis)
 
static bool apple_gamecontroller_joypad_query_pad (unsigned pad)
 
static const char * apple_gamecontroller_joypad_name (unsigned pad)
 

Variables

static uint32_t mfi_buttons [MAX_USERS]
 
static int16_t mfi_axes [MAX_USERS][4]
 
static uint32_t mfi_controllers [MAX_MFI_CONTROLLERS]
 
input_device_driver_t mfi_joypad
 

Macro Definition Documentation

◆ MAX_MFI_CONTROLLERS

#define MAX_MFI_CONTROLLERS   4

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
GCCONTROLLER_PLAYER_INDEX_UNSET 

Function Documentation

◆ apple_gamecontroller_available()

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

◆ apple_gamecontroller_joypad_axis()

static int16_t apple_gamecontroller_joypad_axis ( unsigned  port,
uint32_t  joyaxis 
)
static

◆ apple_gamecontroller_joypad_button()

static bool apple_gamecontroller_joypad_button ( unsigned  port,
uint16_t  joykey 
)
static

◆ apple_gamecontroller_joypad_connect()

static void apple_gamecontroller_joypad_connect ( GCController controller)
static
Here is the call graph for this function:

◆ apple_gamecontroller_joypad_destroy()

static void apple_gamecontroller_joypad_destroy ( void  )
static

◆ apple_gamecontroller_joypad_disconnect()

static void apple_gamecontroller_joypad_disconnect ( GCController controller)
static

◆ apple_gamecontroller_joypad_get_buttons()

static void apple_gamecontroller_joypad_get_buttons ( unsigned  port,
input_bits_t state 
)
static

◆ apple_gamecontroller_joypad_init()

bool apple_gamecontroller_joypad_init ( void data)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ apple_gamecontroller_joypad_name()

static const char* apple_gamecontroller_joypad_name ( unsigned  pad)
static

◆ apple_gamecontroller_joypad_poll()

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

◆ apple_gamecontroller_joypad_poll_internal()

static void apple_gamecontroller_joypad_poll_internal ( GCController controller)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ apple_gamecontroller_joypad_query_pad()

static bool apple_gamecontroller_joypad_query_pad ( unsigned  pad)
static

◆ apple_gamecontroller_joypad_register()

static void apple_gamecontroller_joypad_register ( GCGamepad gamepad)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ mfi_axes

int16_t mfi_axes[MAX_USERS][4]
static

◆ mfi_buttons

uint32_t mfi_buttons[MAX_USERS]
static

◆ mfi_controllers

uint32_t mfi_controllers[MAX_MFI_CONTROLLERS]
static

◆ mfi_joypad

Initial value:
= {
"mfi",
}
static bool apple_gamecontroller_joypad_query_pad(unsigned pad)
Definition: mfi_joypad.m:275
static bool apple_gamecontroller_joypad_button(unsigned port, uint16_t joykey)
Definition: mfi_joypad.m:211
static const char * apple_gamecontroller_joypad_name(unsigned pad)
Definition: mfi_joypad.m:280
static void apple_gamecontroller_joypad_poll(void)
Definition: mfi_joypad.m:106
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void apple_gamecontroller_joypad_destroy(void)
Definition: mfi_joypad.m:207
static int16_t apple_gamecontroller_joypad_axis(unsigned port, uint32_t joyaxis)
Definition: mfi_joypad.m:230
static void apple_gamecontroller_joypad_get_buttons(unsigned port, input_bits_t *state)
Definition: mfi_joypad.m:224
bool apple_gamecontroller_joypad_init(void *data)
Definition: mfi_joypad.m:179