RetroArch
|
#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"
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_t * | input_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) |
|
static |
void input_mapper_free | ( | input_mapper_t * | handle | ) |
input_mapper_t* input_mapper_new | ( | void | ) |
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 | ||
) |