RetroArch
Classes | Macros | Functions
input_mapper.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <compat/strl.h>
#include <compat/posix_string.h>
#include <retro_miscellaneous.h>
#include <libretro.h>
#include "input_mapper.h"
#include "../configuration.h"
#include "../msg_hash.h"
#include "../verbosity.h"
Include dependency graph for input_mapper.c:

Classes

struct  input_mapper
 

Macros

#define MAPPER_GET_KEY(state, key)   (((state)->keys[(key) / 32] >> ((key) % 32)) & 1)
 
#define MAPPER_SET_KEY(state, key)   (state)->keys[(key) / 32] |= 1 << ((key) % 32)
 

Functions

static bool input_mapper_button_pressed (input_mapper_t *handle, unsigned port, unsigned id)
 
input_mapper_tinput_mapper_new (void)
 
void input_mapper_free (input_mapper_t *handle)
 
void input_mapper_poll (input_mapper_t *handle)
 
void input_mapper_state (input_mapper_t *handle, int16_t *ret, unsigned port, unsigned device, unsigned idx, unsigned id)
 

Macro Definition Documentation

◆ MAPPER_GET_KEY

#define MAPPER_GET_KEY (   state,
  key 
)    (((state)->keys[(key) / 32] >> ((key) % 32)) & 1)

◆ MAPPER_SET_KEY

#define MAPPER_SET_KEY (   state,
  key 
)    (state)->keys[(key) / 32] |= 1 << ((key) % 32)

Function Documentation

◆ input_mapper_button_pressed()

static bool input_mapper_button_pressed ( input_mapper_t handle,
unsigned  port,
unsigned  id 
)
static
Here is the caller graph for this function:

◆ input_mapper_free()

void input_mapper_free ( input_mapper_t handle)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_mapper_new()

input_mapper_t* input_mapper_new ( void  )
Here is the caller graph for this function:

◆ input_mapper_poll()

void input_mapper_poll ( input_mapper_t handle)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_mapper_state()

void input_mapper_state ( input_mapper_t handle,
int16_t ret,
unsigned  port,
unsigned  device,
unsigned  idx,
unsigned  id 
)
Here is the call graph for this function:
Here is the caller graph for this function: