Closed
Description
I have two pygamers. Each one has different values given for X and Y on joystick when centered. The code here is assuming that the value is 32767.5 for both X and Y. When the value changes by +-700 then the cursor moves in that direction.
On one of my pygamer devices the X value is ~33344 and Y is ~33632. That puts it out of +-700 range for Y axis and the cursor then moves with no input.
The other pygamer device X value is ~32576 and Y is ~32384. These are within +-700 of the range and works well.
It would be nice if the library checked X and Y center values of device or had a way to put in a line to over-ride default values. I also tested the out of range device with a makecode game and the X and Y axis worked fine and had no drift.
Metadata
Metadata
Assignees
Labels
No labels