libhd 5.0
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <linux/input.h>
#include "hd.h"
#include "hd_int.h"
#include "hddb.h"
#include "input.h"
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) |