       HIDManager)))
 
 
+
+;;;;; CONFIGURATION ;;;;;
+
 (def ^:private library-name
   "JNI library to load when finding devices."
   "hidapi-jni-64")

          nil)))))


(defrecord HIDInput
  [channel
   ^HIDDevice device

(def ^:private ^:const buffer-size
  "Byte buffer size for reading USB input state."
  256)



;;;;; HELPER FUNCTIONS ;;;;;

(defn device-info
  "Builds a map with a device's manufacturer, product, and serial number."
  [^HIDDevice device]
  (when device
    {:manufacturer (.getManufacturerString device)
     :product (.getProductString device)
     :serial (.getSerialNumberString device)}))


(defn find-device
