As all the mappings are in waste majority of times done by software directly in the PC (Windows) there is basically no chance this would work. The only exception would be device (keyboard, mouse or mouse partially emulating keyboard as well) with all macros actually loaded directly into the device - I'm using old Cherry keyboard with "hardware" macros and those indeed works everywhere independent of the sofware. You still need to program them via PC indeed.