Skip to content

Commit a4b667c

Browse files
committed
eventhandler: Add inputKindCaps to CreateInput event
Context: 1b9b59c981593bb6df018dd16966d5a613d3cc6a
1 parent 25a0eba commit a4b667c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/eventhandler/EventHandler_Inputs.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ with this program. If not, see <https://www.gnu.org/licenses/>
2626
* @dataField inputUuid | String | UUID of the input
2727
* @dataField inputKind | String | The kind of the input
2828
* @dataField unversionedInputKind | String | The unversioned kind of input (aka no `_v2` stuff)
29+
* @dataField inputKindCaps | Number | Bitflag value for the caps that an input supports. See obs_source_info.output_flags in the libobs docs
2930
* @dataField inputSettings | Object | The settings configured to the input when it was created
3031
* @dataField defaultInputSettings | Object | The default settings for the input
3132
*
@@ -48,6 +49,7 @@ void EventHandler::HandleInputCreated(obs_source_t *source)
4849
eventData["inputUuid"] = obs_source_get_uuid(source);
4950
eventData["inputKind"] = inputKind;
5051
eventData["unversionedInputKind"] = obs_source_get_unversioned_id(source);
52+
eventData["inputKindCaps"] = obs_source_get_output_flags(source);
5153
eventData["inputSettings"] = Utils::Json::ObsDataToJson(inputSettings);
5254
eventData["defaultInputSettings"] = Utils::Json::ObsDataToJson(defaultInputSettings, true);
5355
BroadcastEvent(EventSubscription::Inputs, "InputCreated", eventData);

0 commit comments

Comments
 (0)