Stub implementations of HAL usage callbacks.
Change-Id: I5c7effddb7fce85d7d33ea79ff7005d37943f520
This commit is contained in:
parent
123edd9f81
commit
8943ce38a6
@ -43,6 +43,8 @@ static input_host_callbacks_t kCallbacks = {
|
||||
.input_report_definition_declare_usages_bool = input_report_definition_declare_usages_bool,
|
||||
.register_device = register_device,
|
||||
.input_allocate_report = input_allocate_report,
|
||||
.input_report_set_usage_int = input_report_set_usage_int,
|
||||
.input_report_set_usage_bool = input_report_set_usage_bool,
|
||||
.report_event = report_event,
|
||||
};
|
||||
|
||||
@ -105,6 +107,11 @@ input_device_handle_t* register_device(input_host_t* host,
|
||||
input_report_t* input_allocate_report(input_host_t* host, input_report_definition_t* r) {
|
||||
return nullptr;
|
||||
}
|
||||
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) { }
|
||||
|
||||
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 report_event(input_host_t* host, input_device_handle_t* d, input_report_t* report) { }
|
||||
|
||||
|
@ -90,6 +90,12 @@ void unregister_device(input_host_t* host, input_device_handle_t* handle);
|
||||
|
||||
input_report_t* input_allocate_report(input_host_t* host, input_report_definition_t* r);
|
||||
|
||||
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);
|
||||
|
||||
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 report_event(input_host_t* host, input_device_handle_t* d, input_report_t* report);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user