using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BizHawk.Emulation.Common;
using BizHawk.Client.Common;
namespace BizHawk.Client.Common.InputAdapterExtensions
{
public static class InputAdapterExtensions
{
///
/// Creates a new IController that is in a state of a bitwise And of the source and target controllers
///
public static IController And(this IController source, IController target)
{
return new AndAdapter
{
Source = source,
SourceAnd = target
};
}
///
/// Creates a new IController that is in a state of a bitwise Or of the source and target controllers
///
public static IController Or(this IController source, IController target)
{
return new ORAdapter
{
Source = source,
SourceOr = target
};
}
}
}