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) |
باطل (* 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) |
باطل (* input_device_definition_add_report) ( input_host_t * host ، input_device_definition_t * d ، input_report_definition_t * r) |
باطل (* input_free_device_property) ( input_host_t * host ، input_property_t * property) |
باطل (* 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_property_t * الذي يجب تحريره باستخدام input_free_device_property () . يعد استخدام input_property_t بعد تحرير input_property_map_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) |
باطل (* input_report_definition_add_collection) ( input_host_t * host ، input_report_definition_t * report ، input_collection_id_t id ، int32_t arity) |
إضافة مجموعة مع arity والمعرف المحدد. تصف المجموعة مجموعة من الخصائص المجمعة منطقيًا مثل إحداثيات X و Y بلمسة إصبع واحدة أو مجموعة المفاتيح الموجودة على لوحة المفاتيح. يوضح arity عدد الأمثلة المتكررة لهذه المجموعة التي ستظهر في أي تقرير مرفق به. يصف المعرف نوع التجميع الذي تمثله المجموعة. على سبيل المثال ، قد تحتوي شاشة تعمل باللمس قادرة على الإبلاغ عن ما يصل إلى إصبعين في وقت واحد على مجموعة بإحداثيات X و Y ، ومجموعة من 2 ، ومعرف INPUT_COLLECTION_USAGE_TOUCHSCREEN. قد لا يكون أي معرّف حاضرًا إلا مرة واحدة لتقرير معين.
باطل (* 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) |
باطل (* input_report_definition_declare_usages_bool) ( input_host_t * host ، input_report_definition_t * report ، input_collection_id_t id ، input_usage_t * use ، 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) |
باطل (* report_event) ( input_host_t * host ، input_device_handle_t * d ، input_report_t * report) |
باطل (* unregister_device) ( input_host_t * host، input_device_handle_t * handle) |
تم إنشاء وثائق هذه البنية من الملف التالي:
- الأجهزة / libhardware / تشمل / الأجهزة / المدخلات