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.
|
- #pragma once
-
- #include "util/common.hpp"
- #include "midi.hpp"
-
-
- namespace rack {
-
-
- const int GAMEPAD_DRIVER = -10;
-
-
- struct GamepadInputDevice : MidiInputDevice {
- int deviceId;
- std::vector<uint8_t> ccs;
- std::vector<bool> notes;
- void step();
- };
-
-
- struct GamepadInputDriver : MidiInputDriver {
- GamepadInputDevice devices[16];
-
- GamepadInputDriver();
- std::vector<int> getDeviceIds() override;
- std::string getDeviceName(int deviceId) override;
- MidiInputDevice *getDevice(int deviceId) override;
- };
-
-
- void gamepadStep();
- MidiInputDriver *gamepadGetInputDriver();
-
-
- } // namespace rack
|