by mh » Sun Aug 30, 2009 12:02 pm
will do the WAV playback thing but it's not going to be high performance and you'll lose a lot of flexibility in terms of mixing, panning, etc. If you just want to make a noise and you're not concerned about effects or latency I guess it's fine.
DirectInput might be good for mouse input. It's a nice API that's incredibly simple to set up and use (create an interface, create a device, acquire it for use and read events). It's officially deprecated and is really just a wrapper around the standard Windows messaging functions, and doesn't work too well with some touchpads, but it does have the advantages of disabling mouse acceleration for you, you don't need to worry about stuff like re-centering the mouse after each move or showing/hiding the cursor, and you can consolidate all of your mouse code in the one place.
Don't use it for keyboard input though, that can get real messy as it uses it's own key code table which needs to be translated, and it can frequently send multiple key events with one press which will need to be filtered.