Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overhaul USB HID for Leonardo and Micro #1803

Closed
wants to merge 27 commits into from
Closed

Overhaul USB HID for Leonardo and Micro #1803

wants to merge 27 commits into from

Commits on Dec 1, 2014

  1. Break out the size of a USB keyboard HID packet into a macro.

    Originally from #1391
    Kenneth Newwood authored and obra committed Dec 1, 2014
    Configuration menu
    Copy the full SHA
    d7b654b View commit details
    Browse the repository at this point in the history
  2. A comment on an endif pointed to the wrong if

    From #1488
    nospam2000 authored and obra committed Dec 1, 2014
    Configuration menu
    Copy the full SHA
    f27857d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    60e6c34 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4388bed View commit details
    Browse the repository at this point in the history
  5. Add support for waking up a host via USB HID.

    This functionality originated in pull request:
    #1488
    
    Jesse can attest to the functionality (tested on OS X 10.8, 10.9, and
    Windows 7 but doesn't have the background to verify the implementation
    nospam2000 authored and obra committed Dec 1, 2014
    Configuration menu
    Copy the full SHA
    fbcf948 View commit details
    Browse the repository at this point in the history
  6. Updates to the keyboard usage page for HID to extend the range of

    available keys & add comments
    
    Originally from #1488
    nospam2000 authored and obra committed Dec 1, 2014
    Configuration menu
    Copy the full SHA
    1fd6284 View commit details
    Browse the repository at this point in the history
  7. Add an inital pass at complete HID tables for Keyboard, ConsumerContr…

    …ol and
    
    SystemControl
    obra committed Dec 1, 2014
    Configuration menu
    Copy the full SHA
    387d55b View commit details
    Browse the repository at this point in the history
  8. Addeed Mouse.moveAbs() to USB HID for absolute mouse positioning.

    as requested in issue #1417.
    
    All parameters have the range of -32768 to 32767 and must be scaled
    to screen pixels some examples: x=0, y=0 is the middle of the screen
    x=-32768, y=-32768 is the top left corner x=32767, y=-32768 is the
    top right corner x=32767, y=32767 is the bottom right corner x=-32768,
    y=32767 is the bottom left corner.
    
    Based on commit 7b77d1e from
    #1488
    
    Code slightly massaged by Jesse Vincent to remove overzealous #ifdefs
    nospam2000 authored and obra committed Dec 1, 2014
    Configuration menu
    Copy the full SHA
    a520873 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    648d596 View commit details
    Browse the repository at this point in the history
  10. Add USB HID keyboard press and release variants that work with USB HID

    Keyboard Keycodes. This makes it possible to send HID key events for
    keys that don't appear on a traditional US 104 key keyboard.
    
    This patch is a somewhat rototilled version of the patch linked below.
    In particular, i dropped whitespacechanges from the original patch and
    changed 0x01 and 0x00 in the code to 1 and 0 to better match the style
    of the surrounding code.
    
    Based on patch
    https://github.com/weizenspreu/Arduino/commit/1ede2b8abd7c3b74ffc75f28da38b4acdc4817f2.patch
    from Pull request 1391.
    Kenneth Newwood authored and obra committed Dec 1, 2014
    Configuration menu
    Copy the full SHA
    9a60186 View commit details
    Browse the repository at this point in the history
  11. Switch to less confusingly named HID keyboard character defines.

    Additionally, move to a complete list of all keyboard and keypad keycodes
    transcribed from the HID specification.
    obra committed Dec 1, 2014
    Configuration menu
    Copy the full SHA
    c5efe1e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    6fd35f6 View commit details
    Browse the repository at this point in the history
  13. Demo for the AbsoluteMouse API

    obra committed Dec 1, 2014
    Configuration menu
    Copy the full SHA
    cc0cb95 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    05e7173 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    c86e83e View commit details
    Browse the repository at this point in the history
  16. Refactor the new rawKeycode API to be simpler and cleaner; add a

    "write keycode" method for parity with the old API.
    obra committed Dec 1, 2014
    Configuration menu
    Copy the full SHA
    d51ff08 View commit details
    Browse the repository at this point in the history
  17. Fixed a missing paren.

    Thanks to @follower
    obra committed Dec 1, 2014
    Configuration menu
    Copy the full SHA
    3b535fc View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    282d9c2 View commit details
    Browse the repository at this point in the history
  19. Switch absMouse to a coordinate system with an origin of 0,0 in the u…

    …pper left
    
    corner, rather than the center of the screen.
    
    Allowing negative absolute coordinates leads to hard-to-debug problems with
    overflow and 'unreachable' parts of the screen.
    obra committed Dec 1, 2014
    Configuration menu
    Copy the full SHA
    ed9a3f6 View commit details
    Browse the repository at this point in the history
  20. Remove mouse wheel support from moveAbs.

    There's not a lot of value to having there be two ways to move the
    mouse wheel from two different (but similar) APIs.
    
    Additionally, with the change to zero-origin for absMouse,
    the zero-point for the wheel gets a little bit more confusing for users.
    obra committed Dec 1, 2014
    Configuration menu
    Copy the full SHA
    018545b View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    f0b5e7f View commit details
    Browse the repository at this point in the history
  22. Fix an off-by-8 error in the HID ConsumerControl driver that broke th…

    …ings on
    
    Windows devices
    obra committed Dec 1, 2014
    Configuration menu
    Copy the full SHA
    9ba38e7 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    092dbd7 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    1b0b398 View commit details
    Browse the repository at this point in the history
  25. fix usb mouse report count

    obra committed Dec 1, 2014
    Configuration menu
    Copy the full SHA
    b02e5aa View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    9032971 View commit details
    Browse the repository at this point in the history
  27. extract the various HID report stanzas into preprocessor macros as pr…

    …ep for further refactoring
    obra committed Dec 1, 2014
    Configuration menu
    Copy the full SHA
    ff04c13 View commit details
    Browse the repository at this point in the history