I have a proprietary device - something like an iPad screen - which has a front panel display with touchscreen buttons that work internally as a USB keyboard. During testing/debugging I want to connect it to another keyboard via the external USB port.
Any application which I open on the device by pressing some characters on the touchscreen accepts input codes from either USB keyboard. I want to limit the touchscreen USB keyboard input only to a specific set of apps.
Is there a program which can help me detect which USB port or device the code is coming from? Or someway I can map one keyboard to send a different set of codes? The device is using Linux.