input_host_callbacks 구조체 참조
input_host_callbacks 구조체 참조
#include < input.h >
상세 설명
현장 문서
input_device_definition_t *(* create_device_definition)( input_host_t *호스트) |
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 버스, const char *unique_id) |
input_report_definition_t *(* create_input_report_definition)( input_host_t *호스트) |
input_report_definition_t *(* create_output_report_definition)( input_host_t *호스트) |
무효(* free_report_definition)( input_host_t *호스트, input_report_definition_t *report_def) |
input_report_t *(* input_allocate_report)( input_host_t *호스트, input_report_definition_t *r) |
무효(* input_device_definition_add_report)( input_host_t *호스트, input_device_definition_t *d, input_report_definition_t *r) |
무효(* input_free_device_property)( input_host_t *호스트, input_property_t *속성) |
무효(* input_free_device_property_map)( input_host_t *호스트, input_property_map_t *맵) |
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 *호스트, input_device_identifier_t *id) |
const char*(* input_get_property_key)( input_host_t *호스트, input_property_t *속성) |
const char*(* input_get_property_value)( input_host_t *호스트, input_property_t *속성) |
무효(* input_report_definition_add_collection)( input_host_t *host, input_report_definition_t *report, input_collection_id_t id, int32_t arity) |
주어진 arity와 ID로 컬렉션을 추가합니다. 컬렉션은 한 손가락 터치의 X 및 Y 좌표 또는 키보드의 키 집합과 같이 논리적으로 그룹화된 속성 집합을 설명합니다. arity는 이 컬렉션이 첨부된 보고서에 얼마나 많은 반복 인스턴스가 나타날 것인지를 선언합니다. ID는 컬렉션이 나타내는 그룹화 유형을 설명합니다. 예를 들어 최대 2개의 손가락을 동시에 보고할 수 있는 터치스크린에는 X 및 Y 좌표, arity 2, ID가 INPUT_COLLECTION_USAGE_TOUCHSCREEN인 컬렉션이 있을 수 있습니다. 주어진 ID는 주어진 보고서에 대해 한 번만 존재할 수 있습니다.
void(* input_report_definition_declare_usage_int)( input_host_t *host, input_report_definition_t *report, input_collection_id_t id, input_usage_t 사용량, 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 *usage, size_t usage_count) |
무효(* input_report_set_usage_bool)( input_host_t *host, input_report_t *r, input_collection_id_t id, input_usage_t 사용량, 부울 값, int32_t arity_index) |
무효(* input_report_set_usage_int)( input_host_t *host, input_report_t *r, input_collection_id_t id, input_usage_t 사용량, int32_t 값, int32_t arity_index) |
input_device_handle_t *(* register_device)( input_host_t *호스트, 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 *호스트, input_device_handle_t *핸들) |
이 구조체에 대한 문서는 다음 파일에서 생성되었습니다.