Skip to content

Report routing revisited #1021

@kareltucek

Description

@kareltucek

@benedekkupper, we would like to have more control over the bt/usb HID interfaces.

Until now, whenever an unknown bluetooth device connected, we have (very naively) assumed it is a HID device, and disabled USB HID, and consequently, have treated the connection states as mutually exclusive. This doesn't fit the bill for muliple reasons.

  • we would like to know the connection states independently (i.e., call the DeviceState_SetConnection in void hidmgr_set_transport(const hid::transport* tp) less naively)
  • when both are connected, we would like to be able to decide where a report is to be sent (basically implementing a kvm switch) (e.g., something like mouse_app.selec_destination(bt / usb); would fit the bill nicely.)
  • specifically, if I am not mistaken, in certain situations, we would like to send the commands app reports over USB, while sending keyboard app reports over bluetooth

(Do we already have such ability? If now, what course of action do you suggest?)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions