I am trying to differentiate input between two keyboards that are connected to the computer. My java program needs to be able to distinguish between the two. The original solution was to simply have one keyboard with caps-lock enabled while the other is not.
This worked perfectly when testing on Mac OSX. However when I attempted to run the same program on Ubuntu, I notice that turning caps-lock on enables it for all connected keyboards.
I can no longer distinguish between the two. Any suggestions?