input_host_callbacks 構造体リファレンス
#include <
input.h
>
詳細な説明
フィールドのドキュメント
| 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) |
指定されたキーを持つデバイスのプロパティを取得します。キーが存在しない場合、NULL を返します。存在する場合は、 input_free_device_property() を使用して解放する必要がある input_property_t* を返します。対応する input_property_map_t が解放された後に input_property_t を使用することは定義されていません。
| 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) |
指定された arity と ID のコレクションを追加します。コレクションは、1 本の指のタップの X 座標と Y 座標、キーボード上のキーのセットなど、論理的にグループ化されたプロパティのセットを表します。アリティは、このコレクションの繰り返しインスタンスが、アタッチされているレポートに表示される回数を宣言します。ID は、コレクションで表されるグループ化のタイプを表します。たとえば、最大 2 本の指を同時に報告できるタッチスクリーンには、X 座標と Y 座標、2 の arity、INPUT_COLLECTION_USAGE_TOUCHSCREEN の ID を持つコレクションがあります。特定の ID は、特定のレポートに 1 回だけ存在できます。
| 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) |
この構造体のドキュメントは、次のファイルから生成されました。
- hardware/libhardware/include/hardware/ input.h