X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fjogshuttle.h;h=b136639abf4727d37e9511fcf965dd61971b6c81;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=36e1f4c8df435725f66149b98a5ea2d1a7ee3940;hpb=b2f37cecd90d42af8cc8f655462c91cf6624cb01;p=kdenlive diff --git a/src/jogshuttle.h b/src/jogshuttle.h index 36e1f4c8..b136639a 100644 --- a/src/jogshuttle.h +++ b/src/jogshuttle.h @@ -47,14 +47,17 @@ public: private: bool m_isWorking; + void handle_event(const struct media_ctrl_event& ev); + void jog(const struct media_ctrl_event& ev); + void shuttle(const struct media_ctrl_event& ev); + void key(const struct media_ctrl_event& ev); + +#ifdef USE_DEPRECATED void handle_event(EV ev); - void handle_event(struct media_ctrl_event ev); - void jog(struct media_ctrl_event ev); void jog(unsigned int value); void shuttle(int value); - void shuttle(struct media_ctrl_event ev); void key(unsigned short code, unsigned int value); - void key(struct media_ctrl_event ev); +#endif }; typedef QMap DeviceMap; @@ -68,7 +71,7 @@ public: ~JogShuttle(); void stopDevice(); void initDevice(const QString &device); - static QString enumerateDevice(const QString& device); + static QString canonicalDevice(const QString& device); static DeviceMap enumerateDevices(const QString& devPath); static int keysCount(const QString& devPath);