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

Thread: Game controller does not appear properly in Windows

  1. #1
    Junior Member
    Join Date
    Mar 2019
    Location
    United Kingdom
    Posts
    5

    Game controller does not appear properly in Windows

    I have a programme that I am compiling as Serial/Keyboard/Mouse/Joystick.

    I'm not using the Mouse element, but am sending data over the serial, sending characters to Keyboard and utilising the Joystick object to output hardware button presses.

    Although this works OK some of the time, at fairly regular intervals, when I connect the Teensy 3.2, the Joystick does not appear correctly in Windows. If I look at the properties of the Joystick, only the buttons mimics appear, but there is no sign of the Hat switch or the joystick inputs, which certainly do appear when it starts correctly. Although the buttons visually appear in the properties display, they do not actually work.

    When the device is in this state, the programme is still running as the serial and keyboard parts of the code continue to function properly.

    I've built two of these units, and both display the same intermittent issue

    I would welcome any suggestions on diagnosing this. I'm compiling using Arduino 1.8.8 and Teensyduino 1.45
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Properties.PNG 
Views:	4 
Size:	15.9 KB 
ID:	16372  
    Attached Files Attached Files
    Last edited by Maes2ro; 04-09-2019 at 04:23 PM.

  2. #2
    Junior Member
    Join Date
    Mar 2019
    Location
    United Kingdom
    Posts
    5
    After experimenting with more 3.2's, I have found that Removing the device in windows, then forcing a re-install be unplugging and re-plugging the USB, makes a fully formed joystick appear. I have no idea what causes the corruption though, and I'm sure it will be back in the future. I'll continuing to observe, and would still welcome any suggestions.

  3. #3
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Location
    Colmar, France
    Posts
    2,386
    It's Windows. Sometimes the hardware enumeration has weird cache issues. That's why many people call it "plug and pray"

Posting Permissions

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