Function maa_framework::internal::MaaControllerSetOption
source · pub unsafe extern "C" fn MaaControllerSetOption(
ctrl: MaaControllerHandle,
key: MaaCtrlOption,
value: MaaOptionValue,
val_size: MaaOptionValueSize
) -> MaaBool
Available on crate feature
internal
only.Expand description
@brief Set options for a given controller instance.
This function requires a given set of option keys and value types, otherwise this will fail. See #MaaCtrlOptionEnum for details.
@param ctrl The handle of the controller instance to set options for. @param key The option key. @param value The option value. @param val_size The size of the option value. @return MaaBool Whether the option is set successfully.