this post was submitted on 12 Aug 2023
4 points (100.0% liked)

Learn Programming

1625 readers
1 users here now

Posting Etiquette

  1. Ask the main part of your question in the title. This should be concise but informative.

  2. Provide everything up front. Don't make people fish for more details in the comments. Provide background information and examples.

  3. Be present for follow up questions. Don't ask for help and run away. Stick around to answer questions and provide more details.

  4. Ask about the problem you're trying to solve. Don't focus too much on debugging your exact solution, as you may be going down the wrong path. Include as much information as you can about what you ultimately are trying to achieve. See more on this here: https://xyproblem.info/

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS
 

https://github.com/ZILtoid1991/iota/blob/7299074d7013ab5664415ed9c9b9fc02bd29cfc9/source/iota/controls/polling.d#L80
https://github.com/ZILtoid1991/iota/blob/7299074d7013ab5664415ed9c9b9fc02bd29cfc9/source/iota/window/oswindow.d#L323

I have this very non-standard event loop for an input-output library. It has issues with processing and receiving certain messages. I'm only getting input language change messages by doing certain tricks (usually by changing the input method on the taskbar, then moving the window), but even then it often makes my app hanging. I also don't get any device handles from raw input messages (always null, even with devices that supposed to have all time). It's like if some other function calls, that would make things work as should, aren't mentioned in the MS documentation, and is just assumed it's common knowledge. Similar thing happened to me with SDL, when I was pulling my hair for not being able to get audio working, I even wrote my alternative library, then someone told me it's common knowledge that you should call yet another function before starting the audio stream, except none of the few existing tutorials mentioned it (most just recommended you to use existing sound playback libraries instead of doing your own thing), and the documentation wasn't clear on it (by not clear, it did not mention explicitly, other than being named prepareAudioStream or something).

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here