C#C
C#5mo ago
Phill

PInvoke.GetRawInputData returns -1

uint output = PInvoke.GetRawInputData(
    (Windows.Win32.UI.Input.HRAWINPUT)m.LParam,
    Windows.Win32.UI.Input.RAW_INPUT_DATA_COMMAND_FLAGS.RID_INPUT,
    null,
    ref dwSize,
    (uint)sizeof(Windows.Win32.UI.Input.HRAWINPUT));
Debug.WriteLine("output " +  (int)output);

this returns -1 and dwSize is never set. It's not working and I don't know why.
https://github.com/PhillBenoit/KeyboardGame
GitHub
4 player word game. Contribute to PhillBenoit/KeyboardGame development by creating an account on GitHub.
Was this page helpful?