I'm lost. Completely.
I can't find any sort of material which might explain what all the RegisterDevice and EventHandler functions are and what exactly am I supposed to do. The only thing I could write so far is
class Input
{
public delegate void Input(object obj, SlimDX.RawInput.KeyboardInputEventArgs args);
public void Initialize(Input ip)
{
Device1.RegisterDevice(SlimDX.Multimedia.UsagePage.Generic, SlimDX.Multimedia.UsageId.Keyboard, DeviceFlags.None);
Device1.KeyboardInput += new System.EventHandler<KeyboardInputEventArgs>(ip);
}
};
And I'm not even sure about the function declaration at the top, I just copied that from here http://digg.pp.fi/3d.../InputSystem.cs.
Am I supposed to be looking at the win32 RawInput documentation and just convert it to C# code? Is the SlimDX RawInput similar to the Win32 one or not?
Thanks!