X-56 binding question

Hi everyone,

I use steam to take pics and save them to my Dropbox folder by pressing a keyboard button (space bar) but was wondering if it’s possible to somehow bind the space bar to the trigger switch on the X-56 so I don’t have to move hands off of hotas ?
I’ve been messing around and can’t find a way as the steam app is external to MSFS….