this post was submitted on 11 Aug 2023
1 points (100.0% liked)

Programming

3 readers
1 users here now

This magazine is dedicated to discussions on programming languages, software development, and coding. Whether you are a beginner programmer or an experienced developer, this is the place for you. Here you can share your knowledge, ask questions, and engage in discussions on topics such as coding languages, software engineering, web development, and more. From the latest trends and frameworks to tips and tricks for debugging, this category covers a wide range of topics related to programming.

founded 2 years ago
 

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.

top 1 comments
sorted by: hot top controversial new old
[–] ZILtoid1991@kbin.social 1 points 1 year ago

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.