My InputManager initialization code:
public InputManager(Game game)
Device.RegisterDevice(UsagePage.Generic, UsageId.Mouse, DeviceFlags.None, game.Form.Handle);
Device.MouseInput += new EventHandler<MouseInputEventArgs>(Device_MouseInput);
The first time my InputManager is instantiated, everything works fine. The second (and I would imagine subsequent, though I haven't checked) time the InputManager is instantiated, the Device.MouseInput event never gets fired on button clicks, and the ButtonState is always marked as None.
I am running the game in a slightly odd environment. The primary application is a C#/WPF application, but one of our screens was suffering from a severe performance bottleneck, so we decided to implement it using SlimDX. My Game will be created and destroyed several times throughout the day, while the host application will remain running for eight to ten hours [working in a clinical environment]. It's not reasonable to ask our users to restart the application between game sessions.
Has anyone encountered anything like this before? Or does anyone know where I could look for help?