     if (isInputting == false) {
       //  This function resets contreoller data when requested by the computer. Can be used for example when something goes wrong on the computer's end.
       inputDelay = 0;
+      isInputtingDelayed = false;
+      isInputting = false;
       serial_rx_buffer_controller[0] = 0x01; //  Preamble
       serial_rx_buffer_controller[1] = 0x00; //  SELECT, L3, R3, START, DUP, DRIGHT, DDOWN, DLEFT
       serial_rx_buffer_controller[2] = 0x00; //  L2, R2, L1, R1, Triangle/Delta, Circle/O, Cross/X, Square

{
  //  This function resets controller data when requested by the computer. Can be used for example when something goes wrong on the computer's end.
  inputDelay = 0;
  serial_rx_buffer_controller[0] = 0x01; //  Preamble
  serial_rx_buffer_controller[1] = 0x00; //  SELECT, L3, R3, START, DUP, DRIGHT, DDOWN, DLEFT
  serial_rx_buffer_controller[2] = 0x00; //  L2, R2, L1, R1, Triangle/Delta, Circle/O, Cross/X, Square


  //  Buffer Array Element 8 is unused in this code, but is existing in case changes are needed
  Serial.flush();
  inputDelay = 0;
  isInputtingDelayed = false;
  isInputting = false;
}

void autoResetControllerData()
