It seems that DirectInput is generally deprecated nowadays.
Sorry, it has been a long time since I last read on windows input methods, the docs says your right about DirectInput! use a polling based approach for message retrieval... Windows already providing the machinery to accurately sequence user inputs
I'd like to know about those api ! Because as far as I know, if you go low level enough (but stay in userland) it appears that polling is the only way to get the input event in a Windows application. If a framework offers you some callback mechanism, it is an abstraction over the event loop[0] or the polling of the gamepad state.Also the link I had in my bookmarks for win32 assembly programming has semi rotted, I found another working link[1]
While the tutorial I suggested are old and in x86 assembly, the concept presented are still relevant and the instructions and registers are still available in x64 ASM.
I don't suggested that you stay in assembly (nor autoit ;) ) to write complex applications but that knowledge will make you a better system programmer without giving you bad habits like C or a C like language would. So when your done with the first few tutorial I linked, you could learn a highlevel language like nim[2] and a system language like rust[3].
0) https://github.com/glfw/glfw/blob/97da62a027794d9ff0f4512268...