Class PDJE_Input
Defined in File PDJE_Input.hpp
Class Documentation
-
class PDJE_Input
Input device manager.
Searches for connected devices and pairs them with the engine.
Public Functions
-
std::vector<DeviceData> GetDevs()
Get All Connected devices.
-
std::vector<libremidi::input_port> GetMIDIDevs()
Get All Connected MIDI devices.
-
bool Init(void *platform_ctx0 = nullptr, void *platform_ctx1 = nullptr, bool use_internal_window = false)
initialize pdje input.
Platform contexts (optional):
Linux:
platform_ctx0 = wl_display*,platform_ctx1 = wl_surface*Windows: currently ignored (reserved)
use_internal_window:Linux: if true, allows PDJE to create an internal Wayland window when evdev -> wayland fallback is needed and host handles are unavailable.
Windows: currently ignored (reserved)
-
bool Config(std::vector<DeviceData> &devs, const std::vector<libremidi::input_port> &midi_dev)
configure device data.
-
bool Run()
run input Loop
-
bool Kill()
kill input Loop
-
PDJE_INPUT_STATE GetState()
get pdje input module’s configuration & running state
-
std::string GetCurrentInputBackend() const
get current active input backend name.
-
PDJE_INPUT_DATA_LINE PullOutDataLine()
pull out input data line. The input Loop will pass datas in here.
-
PDJE_Input()
Constructor.
-
inline ~PDJE_Input()
Destructor.
-
std::vector<DeviceData> GetDevs()