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="
 
#define INP_EV   "B: EV="
 
#define INP_PROP   "B: PROP="
 
#define INP_SYS   "S: Sysfs="
 
#define FALSE   0
 
#define TRUE   1
 
#define test2_bit(bit, str)   (test_bit(str,bit) ? TRUE : FALSE)
 

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)
 
static hd_base_classes_t test_pointers (const __u16 *id_bus, const unsigned long *bitmask_ev, const unsigned long *bitmask_abs, const unsigned long *bitmask_key, const unsigned long *bitmask_rel, const unsigned long *bitmask_props)
 
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

◆ FALSE

#define FALSE   0

◆ INP_ABS

#define INP_ABS   "B: ABS="

◆ INP_EV

#define INP_EV   "B: EV="

◆ INP_HANDLERS

#define INP_HANDLERS   "H: Handlers="

◆ INP_KEY

#define INP_KEY   "B: KEY="

◆ INP_NAME

#define INP_NAME   "N: Name="

◆ INP_PROP

#define INP_PROP   "B: PROP="

◆ INP_REL

#define INP_REL   "B: REL="

◆ INP_SYS

#define INP_SYS   "S: Sysfs="

◆ test2_bit

#define test2_bit (   bit,
  str 
)    (test_bit(str,bit) ? TRUE : FALSE)

◆ TRUE

#define TRUE   1

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

◆ test_pointers()

hd_base_classes_t test_pointers ( const __u16 *  id_bus,
const unsigned long *  bitmask_ev,
const unsigned long *  bitmask_abs,
const unsigned long *  bitmask_key,
const unsigned long *  bitmask_rel,
const unsigned long *  bitmask_props 
)
static

References bc_none, bc_touchpad, FALSE, test2_bit, and TRUE.

Referenced by get_input_devices().