GetRawInputData always returns null as device handle regardless of input type ( kbin.social )

Supposedly, it was only supposed to happen with high-precision trackpads, but it happens to all my devices. I do however have a graphic tablet and an old PS/2 keyboard connected to my motherboard, but all devices cause such issues on my PC at least. I tried my best to follow MS documentations as closely as possible, so unless there was something missing from there (I've read something about OnInputEvent.Post(), but it might be related to some other API) I don't think I've done something wrong.

ZILtoid1991 OP ,
@ZILtoid1991@kbin.social avatar

I have even more issues with the Windows input library.

  • There's like a lot of functions you should call to enable certain parts, but they're not documented at those parts, and are very hard to track down.
  • In general, it is just assumed things just will work as is, and even then people will tell you other input libraries already do exists, so no need to write your own, and otherwise I should write electron apps, because software installation and type declarations are very scary (Web 2.0 was a mistake, and people should have been just as skeptical with it as with crypto).
  • The preexisting libraries often have their own issues. SDL is bloated with standard library features, and I couldn't get its audio subsystem working at all, not to mention it's lacking in some features. The alternatives are not much better, and have their own issues, usually lacking the XInput handling on Windows, and instead using DirectInput.

Currently I'm having issues with not getting events generated for language changes too, even with the legacy part of my API. No info on why I'm not getting them for my application, they just hang until I change windows.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • wartaberita
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • TheResearchGuardian
  • Ask_kbincafe
  • KbinCafe
  • Testmaggi
  • Socialism
  • feritale
  • oklahoma
  • SuperSentai
  • KamenRider
  • All magazines