Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: FYI: USB mouse button example does not compile on teensy2 and teensy2++

  1. #1

    FYI: USB mouse button example does not compile on teensy2 and teensy2++

    When testing Sloeber I have 2 failed tests on the USB mouse button example (examples of teensyduino 1.4.1)
    I tested with teensyduino and that also failed (though with a different error message)
    The problem is with Mouse.screenSize(1920, 1080);
    Apparently for teensy2(++) Mouse is defined in usb_api.h where in the other cases in usb_mouse.h
    usb_api.h does not define the screensize method resulting in the error.

    Best regards

  2. #2
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Yes it looks like the Teensy 2/2+ mouse class which is in the usb_api.h... stuff was not updated to the newer stuff in the Teensy 3.X and LC code base. Looks like those new calls were added something like 4 years ago and the example function had it maybe at least 2+ years ago (first code drop for updated example)...

    So my guess is it may not be a high priority to update this code base. Options include try to add the functionality to the Teensy 2 class and then see if Paul might take a Pull request, or update the example to not use the screenSize and moveTo methods on the T2

  3. #3
    It is up to Paul but I was thinking about adding a comment in the example.

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012

  5. #5
    cool :-) thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts