#include <stddef.h>
#include <stdio.h>
#include <stdint.h>
Go to the source code of this file.
Functions |
void | parse_rc (FILE *file, const char *name) |
char * | dump_keysym (intptr_t k) |
char * | dump_joypad (intptr_t k) |
void | dump_rc (FILE *file) |
intptr_t | rc_number (const char *value, intptr_t *) |
intptr_t | rc_keysym (const char *code, intptr_t *) |
intptr_t | rc_boolean (const char *value, intptr_t *) |
intptr_t | rc_joypad (const char *desc, intptr_t *) |
intptr_t | rc_ctv (const char *value, intptr_t *) |
intptr_t | rc_scaling (const char *value, intptr_t *) |
intptr_t | rc_emu_z80 (const char *value, intptr_t *) |
intptr_t | rc_emu_m68k (const char *value, intptr_t *) |
intptr_t | rc_region (const char *value, intptr_t *) |
intptr_t | rc_string (const char *value, intptr_t *) |
intptr_t | rc_rom_path (const char *value, intptr_t *) |
intptr_t | rc_bind (const char *value, intptr_t *variable) |
void | rc_str_cleanup (void) |
struct rc_field * | rc_binding_add (const char *rc, const char *to) |
void | rc_binding_del (struct rc_field *rcf) |
Macro Definition Documentation
#define JS_AXIS_BETWEEN 0x80 |
#define JS_AXIS_NEGATIVE 0x00 |
#define JS_AXIS_POSITIVE 0xff |
#define JS_BUTTON |
( |
|
id, |
|
|
|
button |
|
) |
| |
#define JS_GET_AXIS |
( |
|
v | ) |
(((v) >> 8) & 0xff) |
#define JS_GET_BUTTON |
( |
|
v | ) |
((v) & 0xff) |
#define JS_GET_IDENTIFIER |
( |
|
v | ) |
(((v) >> 16) & 0xff) |
#define JS_HAT_CENTERED 0 |
#define JS_HAT_LEFT_DOWN 6 |
#define JS_HAT_RIGHT_DOWN 4 |
#define JS_HAT_RIGHT_UP 2 |
#define JS_IS_AXIS |
( |
|
v | ) |
((((v) >> 24) & 0xff) == JS_TYPE_AXIS) |
#define JS_IS_BUTTON |
( |
|
v | ) |
((((v) >> 24) & 0xff) == JS_TYPE_BUTTON) |
#define JS_IS_HAT |
( |
|
v | ) |
((((v) >> 24) & 0xff) == JS_TYPE_HAT) |
#define JS_MAKE_AXIS |
( |
|
a, |
|
|
|
d |
|
) |
| ((JS_TYPE_AXIS << 24) | (((a) & 0xff) << 8) | ((d) & 0xff)) |
#define JS_MAKE_HAT |
( |
|
h, |
|
|
|
d |
|
) |
| ((JS_TYPE_HAT << 24) | (((h) & 0xff) << 8) | ((d) & 0xff)) |
#define JS_MAKE_IDENTIFIER |
( |
|
i | ) |
(((i) & 0xff) << 16) |
#define JS_TYPE_AXIS 0x02 |
#define JS_TYPE_BUTTON 0x01 |
#define KEYSYM_MOD_ALT 0x40000000 |
#define KEYSYM_MOD_CTRL 0x10000000 |
#define KEYSYM_MOD_MASK 0x78000000 |
#define KEYSYM_MOD_META 0x08000000 |
#define KEYSYM_MOD_SHIFT 0x20000000 |
#define RC_BIND_PREFIX "bind_" |
#define RC_FIELDS_SIZE 1024 |
Function Documentation
char* dump_joypad |
( |
intptr_t |
k | ) |
|
char* dump_keysym |
( |
intptr_t |
k | ) |
|
void dump_rc |
( |
FILE * |
file | ) |
|
void parse_rc |
( |
FILE * |
file, |
|
|
const char * |
name |
|
) |
| |
intptr_t rc_bind |
( |
const char * |
value, |
|
|
intptr_t * |
variable |
|
) |
| |
struct rc_field* rc_binding_add |
( |
const char * |
rc, |
|
|
const char * |
to |
|
) |
| |
|
read |
void rc_binding_del |
( |
struct rc_field * |
rcf | ) |
|
intptr_t rc_boolean |
( |
const char * |
value, |
|
|
intptr_t * |
|
|
) |
| |
intptr_t rc_ctv |
( |
const char * |
value, |
|
|
intptr_t * |
|
|
) |
| |
intptr_t rc_emu_m68k |
( |
const char * |
value, |
|
|
intptr_t * |
|
|
) |
| |
intptr_t rc_emu_z80 |
( |
const char * |
value, |
|
|
intptr_t * |
|
|
) |
| |
intptr_t rc_joypad |
( |
const char * |
desc, |
|
|
intptr_t * |
|
|
) |
| |
intptr_t rc_keysym |
( |
const char * |
code, |
|
|
intptr_t * |
|
|
) |
| |
intptr_t rc_number |
( |
const char * |
value, |
|
|
intptr_t * |
|
|
) |
| |
intptr_t rc_region |
( |
const char * |
value, |
|
|
intptr_t * |
|
|
) |
| |
intptr_t rc_rom_path |
( |
const char * |
value, |
|
|
intptr_t * |
|
|
) |
| |
intptr_t rc_scaling |
( |
const char * |
value, |
|
|
intptr_t * |
|
|
) |
| |
void rc_str_cleanup |
( |
void |
| ) |
|
intptr_t rc_string |
( |
const char * |
value, |
|
|
intptr_t * |
|
|
) |
| |
Variable Documentation
const char* emu_m68k_names[] |
const char* emu_z80_names[] |
const char* scaling_names[] |