Oh now - you'd probably have gotten a more lively response over on the DBPro board, only because the people here are generally more geared towards the art, than the code.
DBPro sounds like it could be of use to you, however. It generates Direct X based 3d worlds, and will very simply accept joysticks/joypads that you plug into it. Mind you - if you've experience in C++, you may be better going for DGDK - the C++ equivalent. Going back to BASIC might be traumatic for someone used to object orientated programming
So - I'd recommend DGDK (Dark Game Development Kit) - it will shorten the time taken to getting 3d environments up and running greatly, and should accept most joystick inputs readily (and mouse input is very simple indeed). I'm afraid I don't know what inputs a head tracker gives, but I'm going to assume that it'll be like the analogue sticks on a console-style joypad (2 pairs of X/Y axes).
If you go with DBPro, and you need to read in 2 joysticks at once, there is a plugin that will allow you to do so. (I'm afraid I can't remember the name - it was a non-official one). I don't know how it works in DGDK - I've never tried it.
Hope that helps.