Got Xwing Alliance working beautifully on my laptop with the latest Logitech joystick, sweet! These instructions were flawless if anyone else in future wants to do the same http://www.gog.com/forum/general/how_to_get_xwing_alliance_working_on_windows_7_64bit_and_new_machines
DOSBox does have a button mapper bound to Ctrl+F1, I believe, which you can use to bind things like keyboard keys to the various buttons on the joystick. Which I'd imagine would be very handy for a game like X-Wing.Let me know if there's anything else I can help you with! Sorry for a slow reply, i've been busy lately. But DOS is kind of my, eh... kind of my thing, if you get my drift.Also, if you want a way to store all these games and have it so you can run them without dealing with a command line, I'd recommend you over towards D-Fend Reloaded. You can grab it from here, along with a collection of free games that I've complied for the site. You can just use the software it comes with to add in your own games and set your own settings individually.
Well... unfortunately, when you get into Windows territory, that's a lot harder. You could always use a virtual machine, but that would involve having an installation disc of whatever OS you want to install, the knowledge on how to set it up, the space to hold it, and the ability to install the drivers you'd need .I've done it, but it's pretty tricky, I'm not going to lie....I really wish somebody would make something like DOSBox for Windows.