Add new button type, clean up pull-up resistor logic. #1
|
@ -1,8 +1,6 @@
|
||||||
#include "Joystick.h"
|
#include "Joystick.h"
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
|
||||||
using std::list;
|
|
||||||
|
|
||||||
bool operator ==(JoyReport a, JoyReport b){
|
bool operator ==(JoyReport a, JoyReport b){
|
||||||
for (uint8_t i=0; i < JOYSTICK_NUM_AXES; i++) {
|
for (uint8_t i=0; i < JOYSTICK_NUM_AXES; i++) {
|
||||||
if (a.axis[i] != b.axis[i]) return false;
|
if (a.axis[i] != b.axis[i]) return false;
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include <Bounce2.h>
|
#include <Bounce2.h>
|
||||||
|
|
||||||
using std::list;
|
|
||||||
|
|
||||||
// If you're using the arduino-big-joystick firmware, these numbers can't be
|
// If you're using the arduino-big-joystick firmware, these numbers can't be
|
||||||
// changed. If you're writing your own Report Descriptor, tune these to match by
|
// changed. If you're writing your own Report Descriptor, tune these to match by
|
||||||
// defining them *before* you include Joystick.h.
|
// defining them *before* you include Joystick.h.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user