RetroArch
Classes | Typedefs | Functions | Variables
dirty_input.c File Reference
#include <stdlib.h>
#include <boolean.h>
#include "../core.h"
#include "../dynamic.h"
#include "mylist.h"
#include "mem_util.h"
#include "dirty_input.h"
Include dependency graph for dirty_input.c:

Classes

struct  InputListElement_t
 

Typedefs

typedef struct InputListElement_t InputListElement
 
typedef bool(* LoadStateFunction) (const void *, size_t)
 

Functions

static void reset_hook (void)
 
static bool unserialze_hook (const void *buf, size_t size)
 
static voidInputListElementConstructor (void)
 
static void InputListElementRealloc (InputListElement *element, unsigned int newSize)
 
static void InputListElementExpand (InputListElement *element, unsigned int newIndex)
 
static void InputListElementDestructor (void *element_ptr)
 
static void input_state_destroy (void)
 
static void input_state_set_last (unsigned port, unsigned device, unsigned index, unsigned id, int16_t value)
 
int16_t input_state_get_last (unsigned port, unsigned device, unsigned index, unsigned id)
 
static int16_t input_state_with_logging (unsigned port, unsigned device, unsigned index, unsigned id)
 
void add_input_state_hook (void)
 
void remove_input_state_hook (void)
 

Variables

bool input_is_dirty = false
 
static MyListinput_state_list = NULL
 
struct retro_core_t current_core
 
struct retro_callbacks retro_ctx
 
static function_t retro_reset_callback_original = NULL
 
static LoadStateFunction retro_unserialize_callback_original = NULL
 
static retro_input_state_t input_state_callback_original
 

Typedef Documentation

◆ InputListElement

◆ LoadStateFunction

typedef bool(* LoadStateFunction) (const void *, size_t)

Function Documentation

◆ add_input_state_hook()

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

◆ input_state_destroy()

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

◆ input_state_get_last()

int16_t input_state_get_last ( unsigned  port,
unsigned  device,
unsigned  index,
unsigned  id 
)
Here is the caller graph for this function:

◆ input_state_set_last()

static void input_state_set_last ( unsigned  port,
unsigned  device,
unsigned  index,
unsigned  id,
int16_t  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_state_with_logging()

static int16_t input_state_with_logging ( unsigned  port,
unsigned  device,
unsigned  index,
unsigned  id 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ InputListElementConstructor()

static void* InputListElementConstructor ( void  )
static
Here is the caller graph for this function:

◆ InputListElementDestructor()

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

◆ InputListElementExpand()

static void InputListElementExpand ( InputListElement element,
unsigned int  newIndex 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ InputListElementRealloc()

static void InputListElementRealloc ( InputListElement element,
unsigned int  newSize 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ remove_input_state_hook()

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

◆ reset_hook()

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

◆ unserialze_hook()

static bool unserialze_hook ( const void buf,
size_t  size 
)
static
Here is the caller graph for this function:

Variable Documentation

◆ current_core

struct retro_core_t current_core

◆ input_is_dirty

bool input_is_dirty = false

◆ input_state_callback_original

retro_input_state_t input_state_callback_original
static

◆ input_state_list

MyList* input_state_list = NULL
static

◆ retro_ctx

struct retro_callbacks retro_ctx

◆ retro_reset_callback_original

function_t retro_reset_callback_original = NULL
static

◆ retro_unserialize_callback_original

LoadStateFunction retro_unserialize_callback_original = NULL
static