philipellisis / arduino-virtual-pinball-board

This is some simple code to make a virtual pinball compatible board that works off of the Arduino firmware
21 stars 8 forks source link

Don't send accelerometer and plunger axis updates when the values remain the same #6

Closed CrazyCoder closed 1 year ago

CrazyCoder commented 1 year ago

I tested it and there is no change in behavior. This should reduce the load on USB/system as there is no point in sending the same axis values again and again for joystick devices. This is actually recommended and used in the Joystick library samples.