X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=theme.h;h=0a239953baebf515f99c9b831e75ccdf6fc1b822;hb=a5746714e6ca1e665bf9e74344e67712443f947a;hp=bbef35ef350d1513afc92aa8216836b13b36b937;hpb=fc8fb149109f0c12964d53b0dc2dc0f42ef1fc3a;p=nageru diff --git a/theme.h b/theme.h index bbef35e..0a23995 100644 --- a/theme.h +++ b/theme.h @@ -158,9 +158,9 @@ private: class LiveInputWrapper { public: // Note: is irrelevant for PixelFormat_8BitBGRA. - LiveInputWrapper(Theme *theme, movit::EffectChain *chain, bmusb::PixelFormat pixel_format, bool override_bounce, bool deinterlace); + LiveInputWrapper(Theme *theme, movit::EffectChain *chain, bmusb::PixelFormat pixel_format, bool override_bounce, bool deinterlace, bool user_connectable); - void connect_signal(int signal_num); // Must be called with the theme's lock held, since it accesses theme->input_state. + bool connect_signal(int signal_num); // Must be called with the theme's lock held, since it accesses theme->input_state. Returns false on error. void connect_signal_raw(int signal_num, const InputState &input_state); movit::Effect *get_effect() const { @@ -181,6 +181,7 @@ private: std::vector rgba_inputs; // Multiple ones if deinterlacing. Owned by the chain. movit::Effect *deinterlace_effect = nullptr; // Owned by the chain. bool deinterlace; + bool user_connectable; }; #endif // !defined(_THEME_H)