From 519e2a530906342aec692016f9bf9801f02116df Mon Sep 17 00:00:00 2001 From: Fred Date: Sun, 15 Feb 2015 17:56:20 +0000 Subject: [PATCH] cleanup --- XBOXONE.h | 4 ---- examples/Xbox/XBOXONE/XBOXONE.ino | 1 - 2 files changed, 5 deletions(-) diff --git a/XBOXONE.h b/XBOXONE.h index cbfe82ea..6b6a349f 100644 --- a/XBOXONE.h +++ b/XBOXONE.h @@ -40,10 +40,6 @@ #define XBOX_REPORT_BUFFER_SIZE 14 // Size of the input report buffer -// Used in control endpoint header for HID Commands -#define bmREQ_HID_OUT USB_SETUP_HOST_TO_DEVICE|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_INTERFACE -#define HID_REQUEST_SET_REPORT 0x09 - #define XBOX_MAX_ENDPOINTS 3 /** This class implements support for a Xbox wired controller via USB. */ diff --git a/examples/Xbox/XBOXONE/XBOXONE.ino b/examples/Xbox/XBOXONE/XBOXONE.ino index 5e2c8d99..83c5397f 100644 --- a/examples/Xbox/XBOXONE/XBOXONE.ino +++ b/examples/Xbox/XBOXONE/XBOXONE.ino @@ -24,7 +24,6 @@ void setup() { void loop() { Usb.Task(); if (Xbox.XboxOneConnected) { - if (Xbox.getAnalogHat(LeftHatX) > 7500 || Xbox.getAnalogHat(LeftHatX) < -7500 || Xbox.getAnalogHat(LeftHatY) > 7500 || Xbox.getAnalogHat(LeftHatY) < -7500 || Xbox.getAnalogHat(RightHatX) > 7500 || Xbox.getAnalogHat(RightHatX) < -7500 || Xbox.getAnalogHat(RightHatY) > 7500 || Xbox.getAnalogHat(RightHatY) < -7500) { if (Xbox.getAnalogHat(LeftHatX) > 7500 || Xbox.getAnalogHat(LeftHatX) < -7500) { Serial.print(F("LeftHatX: "));