input_host_callbacks Odniesienie do struktury
#include < input.h >
szczegółowy opis
Dokumentacja terenowa
input_device_definition_t *(* create_device_definition)( input_host_t *host) |
input_identifier_t *(* create_device_identifier)( input_host_t *host, const char *name, int32_t product_id, int32_t vendor_id, input_bus_t bus, const char *unique_id) |
Tworzy identyfikator urządzenia z podanymi właściwościami. Unikalny identyfikator powinien być ciągiem, który precyzyjnie identyfikuje dany sprzęt. Na przykład urządzenie wejściowe podłączone przez Bluetooth może używać swojego adresu MAC jako unikalnego identyfikatora.
input_report_definition_t *(* create_input_report_definition)( input_host_t *host) |
input_report_definition_t *(* create_output_report_definition)( input_host_t *host) |
void(* wolna_definicja_raportu)( input_host_t *host, input_report_definition_t *report_def) |
input_report_t *(* input_allocate_report)( input_host_t *host, input_report_definition_t *r) |
void(* input_definition_device_add_report)( input_host_t *host, input_device_definition_t *d, input_report_definition_t *r) |
void(* input_free_device_property)( input_host_t *host, input_property_t *property) |
void(* input_free_device_property_map)( input_host_t *host, input_property_map_t *map) |
input_property_t *(* input_get_device_property)( input_host_t *host, input_property_map_t *map, const char *key) |
Pobierz właściwość urządzenia z podanym kluczem. Zwraca NULL, jeśli klucz nie istnieje, lub input_property_t*, który należy zwolnić za pomocą input_free_device_property() . Użycie input_property_t po zwolnieniu odpowiedniej input_property_map_t jest niezdefiniowane.
input_property_map_t *(* input_get_device_property_map)( input_host_t *host, input_device_identifier_t *id) |
const char*(* input_get_property_key)( input_host_t *host, input_property_t *property) |
const char*(* input_get_property_value)( input_host_t *host, input_property_t *property) |
void(* input_report_definition_add_collection)( input_host_t *host, input_report_definition_t *raport, input_collection_id_t id, int32_t arity) |
Dodaj kolekcję o podanej arity i ID. Kolekcja opisuje zestaw logicznie pogrupowanych właściwości, takich jak współrzędne X i Y dotknięcia jednym palcem lub zestaw klawiszy na klawiaturze. Arity deklaruje, ile powtórzonych wystąpień tego zbioru pojawi się w raporcie, do którego jest dołączony. Identyfikator opisuje typ grupowania reprezentowanego przez kolekcję. Na przykład ekran dotykowy, który może wyświetlać do 2 palców jednocześnie, może mieć kolekcję ze współrzędnymi X i Y, arity 2 i identyfikatorem INPUT_COLLECTION_USAGE_TOUCHSCREEN. Dowolny identyfikator może być obecny tylko raz dla danego raportu.
void(* input_report_definition_declare_usage_int)( input_host_t *host, input_report_definition_t *raport, input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max, float resolution) |
void(* input_report_definition_declare_usages_bool)( input_host_t *host, input_report_definition_t *raport, input_collection_id_t id, input_usage_t *usage, size_t usage_count) |
void(* input_report_set_usage_bool)( input_host_t *host, input_report_t *r, input_collection_id_t id, input_usage_t use , bool value, int32_t arity_index) |
void(* input_report_set_usage_int)( input_host_t *host, input_report_t *r, input_collection_id_t id, input_usage_t use , int32_t value, int32_t arity_index) |
input_device_handle_t *(* register_device)( input_host_t *host, identyfikator_urządzenia_wejściowego_t *id, input_device_definition_t * d) |
void(* report_event)( input_host_t *host, input_device_handle_t *d, input_report_t *raport) |
void(* unregister_device)( input_host_t *host, input_device_handle_t *handle) |
Dokumentacja dla tej struktury została wygenerowana z następującego pliku:
- sprzęt/libhardware/include/hardware/ input.h