input_host_callbacks Struct Reference
#include <
input.h
>
Detailed Description
Field Documentation
input_device_definition_t *(* create_device_definition)( input_host_t *host) |
input_device_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) |
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(* free_report_definition)( 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_device_definition_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) |
Retrieve a property for the device with the given key. Returns NULL if the key does not exist, or an input_property_t* that must be freed using input_free_device_property() . Using an input_property_t after the corresponding input_property_map_t is freed is undefined.
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 *report, input_collection_id_t id, int32_t arity) |
Add a collection with the given arity and ID. A collection describes a set of logically grouped properties such as the X and Y coordinates of a single finger touch or the set of keys on a keyboard. The arity declares how many repeated instances of this collection will appear in whatever report it is attached to. The ID describes the type of grouping being represented by the collection. For example, a touchscreen capable of reporting up to 2 fingers simultaneously might have a collection with the X and Y coordinates, an arity of 2, and an ID of INPUT_COLLECTION_USAGE_TOUCHSCREEN. Any given ID may only be present once for a given report.
void(* input_report_definition_declare_usage_int)( input_host_t *host, input_report_definition_t *report, 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 *report, 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 usage, 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 usage, int32_t value, int32_t arity_index) |
input_device_handle_t *(* register_device)( input_host_t *host, input_device_identifier_t *id, input_device_definition_t *d) |
void(* report_event)( input_host_t *host, input_device_handle_t *d, input_report_t *report) |
void(* unregister_device)( input_host_t *host, input_device_handle_t *handle) |
The documentation for this struct was generated from the following file:
- hardware/libhardware/include/hardware/ input.h