Comments (5)
Sorry, I don't quite understand. What did you have in mind?
from usbd-hid.
unsafe {
USB_HID = Some(HIDClass::new(&bus_allocator, MouseReport::desc(), 60));
USB_BUS = Some(
UsbDeviceBuilder::new(&bus_allocator, UsbVidPid(0x16c0, 0x27dd))
.manufacturer("Fake company")
.product("Twitchy Mousey")
.serial_number("TEST")
.device_class(0xEF) // <- MISC instead of 0xEF
.build(),
);
}
from usbd-hid.
Ah, the device class in the USB Device descriptor.
I'm happy to add an enum for HID specific values, but shouldnt more generic ones like MISC
be exposed in something like the usb-device
crate?
from usbd-hid.
Yes but those that are HIDs like mouse, joystick and keyboard should be in this crate, right? Thanks for this crate! :)
from usbd-hid.
Yeppers, I think it would be nice to have the really common descriptors ready to go in this crate (keyboard/mouse/joystick/etc). But i dont think we should try and be exhaustive.
From memory we already have a keyboard one (and maybe a mouse?), but feel free to send PRs for anything major missing.
from usbd-hid.
Related Issues (20)
- Add support for mediakeys HOT 1
- Warning when using `packed_bits` on a field wider than u8. HOT 1
- Add keyboard example HOT 4
- MouseReport doesn't work with scroll wheel buttons HOT 5
- Compile errors from ssmarshal dependency HOT 3
- Cannot create Input report of larger than 32 bytes HOT 2
- HIDClass wastefully allocates endpoints
- Win10 compatibility. HOT 6
- mouse example panics on macosx atsamd51 HOT 3
- Incompatibility with syn 1.0.76 ? HOT 5
- Add an enum for Keyboard Keycodes like there is for MediaKey and SystemControlKey HOT 2
- Support N-key rollover HOT 3
- Bump version HOT 3
- Sticky volume keys when using MediaKeyboardReport HOT 12
- packed_bits in downstream consumers isnt documented HOT 4
- Is there an issue with the generated keyboard descriptor? HOT 5
- Include redundant report descriptor fields HOT 1
- Can we get a 0.6.1 release? HOT 1
- The generated Keyboard descriptor doesn't work under Windows HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usbd-hid.