You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
515B

  1. #pragma once
  2. #include "util/common.hpp"
  3. #include "midi.hpp"
  4. namespace rack {
  5. const int GAMEPAD_DRIVER = -10;
  6. struct GamepadInputDevice : MidiInputDevice {
  7. int device;
  8. };
  9. struct GamepadInputDriver : MidiInputDriver {
  10. GamepadInputDevice gamepadInputDevices[16];
  11. GamepadInputDriver();
  12. int getDeviceCount() override;
  13. std::string getDeviceName(int device) override;
  14. MidiInputDevice *getDevice(int device) override;
  15. };
  16. void gamepadStep();
  17. MidiInputDriver *gamepadGetInputDriver();
  18. } // namespace rack