Git Product home page Git Product logo

Comments (5)

twitchyliquid64 avatar twitchyliquid64 commented on August 16, 2024

Sorry, I don't quite understand. What did you have in mind?

from usbd-hid.

jacobrosenthal avatar jacobrosenthal commented on August 16, 2024
    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.

twitchyliquid64 avatar twitchyliquid64 commented on August 16, 2024

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.

brainstorm avatar brainstorm commented on August 16, 2024

Yes but those that are HIDs like mouse, joystick and keyboard should be in this crate, right? Thanks for this crate! :)

from usbd-hid.

twitchyliquid64 avatar twitchyliquid64 commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.