Original Post
Hi, I'm trying to make a mouse class, but it gives me this complier error when I try to run it. 'Microsoft.DirectX.DirectInput.Device.SetCooperativeLevel(System.IntPtr, Microsoft.DirectX.DirectInput.CooperativeLevelFlags)' is inaccessible due to its protection level
private Device m_DIDevice = null;
public Mouse(IntPtr windowPtr)
{
m_DIDevice = new Device(SystemGuid.Mouse);
m_DIDevice.SetCooperativeLevel(windowPtr, CooperativeLevelFlags.Background | CooperativeLevelFlags.NonExclusive);
m_DIDevice.Properties.AxisModeAbsolute = true;
m_DIDevice.Acquire();
}