RetroArch
Classes | Macros | Functions | Variables
parport_joypad.c File Reference
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <errno.h>
#include <linux/parport.h>
#include <linux/ppdev.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <compat/strl.h>
#include "../input_driver.h"
#include "../../configuration.h"
#include "../../verbosity.h"
#include "../../tasks/tasks_internal.h"
Include dependency graph for parport_joypad.c:

Classes

struct  parport_joypad
 

Macros

#define PARPORT_NUM_BUTTONS   13
 

Functions

static void parport_poll_pad (struct parport_joypad *pad)
 
static bool parport_joypad_init_pad (const char *path, struct parport_joypad *pad)
 
static void parport_joypad_poll (void)
 
static void parport_free_pad (struct parport_joypad *pad)
 
static bool parport_joypad_init (void *data)
 
static void parport_joypad_destroy (void)
 
static bool parport_joypad_button (unsigned port, uint16_t joykey)
 
static void parport_joypad_get_buttons (unsigned port, input_bits_t *state)
 
static int16_t parport_joypad_axis (unsigned port, uint32_t joyaxis)
 
static bool parport_joypad_query_pad (unsigned pad)
 
static const char * parport_joypad_name (unsigned pad)
 

Variables

static struct parport_joypad parport_pads [MAX_USERS]
 
input_device_driver_t parport_joypad
 

Macro Definition Documentation

◆ PARPORT_NUM_BUTTONS

#define PARPORT_NUM_BUTTONS   13

Function Documentation

◆ parport_free_pad()

static void parport_free_pad ( struct parport_joypad pad)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parport_joypad_axis()

static int16_t parport_joypad_axis ( unsigned  port,
uint32_t  joyaxis 
)
static

◆ parport_joypad_button()

static bool parport_joypad_button ( unsigned  port,
uint16_t  joykey 
)
static

◆ parport_joypad_destroy()

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

◆ parport_joypad_get_buttons()

static void parport_joypad_get_buttons ( unsigned  port,
input_bits_t state 
)
static

◆ parport_joypad_init()

static bool parport_joypad_init ( void data)
static
Here is the call graph for this function:

◆ parport_joypad_init_pad()

static bool parport_joypad_init_pad ( const char *  path,
struct parport_joypad pad 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parport_joypad_name()

static const char* parport_joypad_name ( unsigned  pad)
static

◆ parport_joypad_poll()

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

◆ parport_joypad_query_pad()

static bool parport_joypad_query_pad ( unsigned  pad)
static

◆ parport_poll_pad()

static void parport_poll_pad ( struct parport_joypad pad)
static
Here is the caller graph for this function:

Variable Documentation

◆ parport_joypad

Initial value:
= {
"parport",
}
static const char * parport_joypad_name(unsigned pad)
Definition: parport_joypad.c:367
static void parport_joypad_get_buttons(unsigned port, input_bits_t *state)
Definition: parport_joypad.c:343
static bool parport_joypad_init(void *data)
Definition: parport_joypad.c:235
static bool parport_joypad_query_pad(unsigned pad)
Definition: parport_joypad.c:362
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static int16_t parport_joypad_axis(unsigned port, uint32_t joyaxis)
Definition: parport_joypad.c:356
static void parport_joypad_destroy(void)
Definition: parport_joypad.c:321
static void parport_joypad_poll(void)
Definition: parport_joypad.c:206
static bool parport_joypad_button(unsigned port, uint16_t joykey)
Definition: parport_joypad.c:337

◆ parport_pads

struct parport_joypad parport_pads[MAX_USERS]
static