Пример #1
0
        /// <summary>
        /// Creates a custom effect for the mouse.
        /// </summary>
        /// <param name="effect">Custom effect options.</param>
        /// <returns>A <see cref="Guid" /> for the created effect.</returns>
        /// <seealso cref="Razer.NativeMethods.CreateMouseCustomEffects" />
        internal static Guid CreateMouseCustomEffects(Razer.Mouse.Effects.Custom effect)
        {
            var guid   = Guid.Empty;
            var result = NativeMethods.CreateMouseCustomEffects(effect, ref guid);

            if (!result)
            {
                throw new NativeCallException("CreateMouseCustomEffects", result);
            }
            return(guid);
        }
Пример #2
0
 /// <summary>
 /// Creates a custom effect for the mouse.
 /// </summary>
 /// <param name="effect">Effect options.</param>
 /// <returns>A <see cref="Guid" /> for the created effect.</returns>
 internal static Guid CreateMouseEffect(Razer.Mouse.Effects.Custom effect)
 {
     return(CreateMouseEffect(Razer.Mouse.Effects.Effect.Custom, effect));
 }