reeltwo / Reeltwo

Reeltwo RSeries Astromech Firmware
GNU Lesser General Public License v2.1
29 stars 13 forks source link

Update JoystickController.h #2

Closed blubkeman closed 3 years ago

blubkeman commented 3 years ago

Added == and != operators for all the struct definitions in the JoystickController class. Also added functions eq() and ne() that compares a subset of the State struct. The intention is to enable a comparison between the current state and previous state of a joystick so that code may be executed only when there is a change in the state.

blubkeman commented 3 years ago

Withdrawing pull request. Not certain the operators are value-adding.