rustui / hid

A cross platform plugin for communicating with HID devices for Flutter applications.
11 stars 7 forks source link

Add device information and write operations #1

Closed DavBfr closed 2 years ago

DavBfr commented 2 years ago

This PR adds usagePage and usage fields as well as write() to an HID device.

rustui commented 2 years ago

Thanks, I will look this pr soon.

rustui commented 2 years ago

We can't get usagePage and usage on android platform. Maybe we should only add this fields to UsbDevice.

DavBfr commented 2 years ago

There must be a way to get it. It's an essential part of USB HID.

rustui commented 2 years ago

I will add android implementation today. If I find a way to get it, I will add usagePage and usage back to Device class.