In Settings, Output, Recording Tab make sure you have checkboxes against 2 and 3 only on Audio Track.
Note you might need to change the Recording Type as flv does not support multiple audio tracks, I use MP4
Then you need the Advanced Audio Properties, click the cog next to Mixer in the main OBS window.
For your Mic uncheck all Tracks except 3
For your game audio device uncheck all Tracks except 2
If you stream you need to have all the inputs mixed together, so you would need to choose the Audio Track 1 in the Streaming output tab and In the Advanced Audio Properties check channel 1 for each of the devices you want in your stream.
Sorry I hope this helps, it's quite a complex configuration. If you manage to do what I've suggested above you'll get Mic and Game Audio in your stream and Mic and Game Audio in separate tracks in your recording.
Let me know if you have any issues.