Caution! This message was sent from outside the University of Manitoba.
You might be able to do something at the evdev level, which exists below Wayland. (Surprisingly good overview at https://en.wikipedia.org/wiki/Evdev)
I haven’t tested it, but input-remapper, linked from Input remap utilities - ArchWikihttps://wiki.archlinux.org/title/Input_remap_utilities [https://wiki.archlinux.org/title/Input_remap_utilities] looks like what you want.
-Adam
From: Montana Quiring montanaq@gmail.com Sent: Wednesday, April 16, 2025 11:12 AM To: Trevor Cordes trevor@tecnopolis.ca Cc: Continuation of Round Table discussion roundtable@muug.ca Subject: [RndTbl] Re: RaspPi: Multiple "keyboard", keys do different things
Thanks for the info! Hmmm... Maybe it would be easier to just grab an older Win 7 mini PC that's kicking around and use the Windows driver. Oh well. I plug away at it. I'm in no rush and don't have a lot of spare time so I'll tinker when I can. :) I want to set up a mini arcade 2 player cabinet of this old DOS classic Spacewar: https://dosgames.com/game/spacewar/ I'm sure that brings back memories for some of you. ;)
Ya, I keep thinking of swinging by a MUUG meeting but life keeps pulling me in other directions. I'll get there eventually.
Regards, -Montana
On Mon, Apr 14, 2025 at 6:07 PM Trevor Cordes <trevor@tecnopolis.camailto:trevor@tecnopolis.ca> wrote: On 2025-04-14 Montana Quiring wrote:
i.e. The 8 (up) on one numpad would be mapped to "w" and the 8 on the other numpad could be mapped to an "i" for example. Plus another full sized keyboard hooked up to the Pi would function normally.
You actually have 2 problems there:
1) How to make X or Wayland differentiate between the 2 input devices, which at some layers will just appear as the same thing (8 on one will be the same keysym as 8 on the other)
2) How to make X or Wayland map the keys to different keys (taking into account #1 above)
#2 is pretty easy in X. My hunch is X will make all of this easier rather than Wayland, mostly because no one has thought of all the corner use cases for Wayland yet. So maybe find an X distro for the Pi. Also, wacky use cases for X should be numerous on the net forums, whereas Wayland is all brand new.
#1: I have no idea, but could look into it. I have not dealt with a layer in X that would handle this, though it probably exists. One that would let you change the keysyms based on which input device is operating?
One would think this would all fall under "accessibility", because there are all sorts of wacky devices for those with impairments, and you could easily have more than 1 of the same device (say, foot pedals) that you want to have do different things.
In any event, it almost certainly will require some intense conf file editing. I'd be shocked if there was a gui for any of this.
Cheers! P.S. Come out to a meeting sometime, we miss you Montana!
_______________________________________________ Roundtable mailing list -- roundtable@muug.ca To unsubscribe send an email to roundtable-leave@muug.ca