USB Overdrive is a macOS device driver that handles any USB or Bluetooth mouse, keyboard, trackball, joystick, gamepad or gaming device from any manufacturer and lets you configure it either globally or for specific applications.
USB Overdrive reads all kinds of wheels, buttons, keys, switches and controls and assigns them to useful actions like clicking, typing, scrolling, launching, opening documents and so forth. It can easily handle several USB devices at once and can assign different settings to each one.
USB Overdrive works in macOS 10.14 (Mojave), 10.13 (High Sierra), 10.12 (Sierra) and 10.11 (El Capitan). Older releases are available for previous macOS versions.