My buddy and I are trying to get back into C++ after many years and we are pretty darn rusty - may as well be considered beginners.
We are trying to get the DirectX DirectInput function working to be able to read keyboard input. Just to figure out that DirectInput was the best thing for us to use has taken weeks and searching the MS help and googling the universe and finding so little of exactly what we need.
We just want a complete example of the bare minimum implementation of a keyboard reader. We find either too much stuff - or examples written in bits and pieces with text that assume you have everything else figured out.
I'd like to find an example that just does the minimum and gives it as a complete cpp and/or h file. Some nice commenting would be nice too.
If you know where to find such examples please let me know. I've tried google code search but not finding the perfect example we need. Even the DirectX documentation fails - it has a tutorial but it assumes too much and fails to give the final example as a complete file.
THANKS
We are trying to get the DirectX DirectInput function working to be able to read keyboard input. Just to figure out that DirectInput was the best thing for us to use has taken weeks and searching the MS help and googling the universe and finding so little of exactly what we need.
We just want a complete example of the bare minimum implementation of a keyboard reader. We find either too much stuff - or examples written in bits and pieces with text that assume you have everything else figured out.
I'd like to find an example that just does the minimum and gives it as a complete cpp and/or h file. Some nice commenting would be nice too.
If you know where to find such examples please let me know. I've tried google code search but not finding the perfect example we need. Even the DirectX documentation fails - it has a tutorial but it assumes too much and fails to give the final example as a complete file.
THANKS