Input device scan functions.
More...
Input device scan functions.
◆ FALSE
◆ INP_ABS
#define INP_ABS "B: ABS=" |
◆ INP_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
◆ TRUE
◆ add_joystick_details()
void add_joystick_details |
( |
hd_data_t * |
hd_data, |
|
|
hd_t * |
h, |
|
|
const char * |
key, |
|
|
const char * |
abso |
|
) |
| |
References ADD2LOG, joystick_s::axes, joystick_s::buttons, hd_detail_joystick_t::data, s_hd_t::detail, free_hd_detail(), hd_detail_joystick, hd_detail_t::joystick, new_mem(), test_bit(), and hd_detail_t::type.
Referenced by get_input_devices().
◆ all_bits()
char * all_bits |
( |
char * |
str | ) |
|
|
static |
◆ get_input_devices()
void get_input_devices |
( |
hd_data_t * |
hd_data | ) |
|
|
static |
References ADD2LOG, add_hd_entry(), add_joystick_details(), add_str_list(), all_bits(), s_hd_t::base_class, bc_joystick, bc_keyboard, bc_mouse, bc_touchpad, s_hd_t::bus, bus_adb, bus_gameport, bus_ps2, bus_serial, canon_str(), s_hd_t::compat_device, s_hd_t::compat_vendor, DEV_MICE, s_hd_t::device, free_mem(), free_str_list(), hd_data_t::hd, hd_data, hd_set_hw_class(), hd_split(), hw_joystick, hw_mouse, hd_id_t::id, INP_ABS, INP_EV, INP_HANDLERS, INP_KEY, INP_NAME, INP_PROP, INP_REL, INP_SYS, input(), hd_dev_num_t::major, MAKE_ID, hd_dev_num_t::minor, hd_id_t::name, new_str(), s_str_list_t::next, s_hd_t::next, read_file(), sc_keyboard_kbd, sc_mou_bus, sc_mou_ps2, sc_mou_usb, search_str_list(), s_str_list_t::str, str_printf(), s_hd_t::sub_class, s_hd_t::sysfs_id, TAG_SPECIAL, test_bit(), test_pointers(), s_hd_t::unix_dev_name, s_hd_t::unix_dev_name2, s_hd_t::unix_dev_names, s_hd_t::unix_dev_num, s_hd_t::unix_dev_num2, s_hd_t::vendor, and vendor.
Referenced by hd_scan_input().
◆ hd_scan_input()
◆ 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 |