libhd  5.0
Macros | Functions

Input device scan functions. More...

Macros

#define INP_NAME   "N: Name="
 
#define INP_HANDLERS   "H: Handlers="
 
#define INP_KEY   "B: KEY="
 
#define INP_REL   "B: REL="
 
#define INP_ABS   "B: ABS="
 

Functions

static void get_input_devices (hd_data_t *hd_data)
 
static char * all_bits (char *str)
 
static int test_bit (const char *str, unsigned bit)
 
void hd_scan_input (hd_data_t *hd_data)
 
void add_joystick_details (hd_data_t *hd_data, hd_t *h, const char *key, const char *abso)
 

Detailed Description

Input device scan functions.

Macro Definition Documentation

◆ INP_ABS

#define INP_ABS   "B: ABS="

Referenced by get_input_devices().

◆ INP_HANDLERS

#define INP_HANDLERS   "H: Handlers="

Referenced by get_input_devices().

◆ INP_KEY

#define INP_KEY   "B: KEY="

Referenced by get_input_devices().

◆ INP_NAME

#define INP_NAME   "N: Name="

Referenced by get_input_devices().

◆ INP_REL

#define INP_REL   "B: REL="

Referenced by get_input_devices().

Function Documentation

◆ add_joystick_details()

void add_joystick_details ( hd_data_t hd_data,
hd_t h,
const char *  key,
const char *  abso 
)

◆ all_bits()

char * all_bits ( char *  str)
static

◆ get_input_devices()

void get_input_devices ( hd_data_t hd_data)
static

◆ hd_scan_input()

void hd_scan_input ( hd_data_t hd_data)

◆ test_bit()

int test_bit ( const char *  str,
unsigned  bit 
)
static