Author Topic: Hardware based key remapping for Apple Magic Keyboards?  (Read 2120 times)

0 Members and 1 Guest are viewing this topic.

Offline lambdan

  • Thread Starter
  • Posts: 5
  • Location: sweden
Hardware based key remapping for Apple Magic Keyboards?
« on: Fri, 24 May 2019, 07:19:37 »
I kinda like the flat/laptop style of recent Apple Magic Keyboards, and they do work in Windows either over USB or Bluetooth, but the Windows and LeftAlt need to be flipped.
You can flip/remap these in software, either with Autohotkey or SharpKeys, but this method has flaws sometimes.
For example, in GTA 5, which uses the LeftAlt key by default to switch characters, if you press that after having it flipped with the Windows key, it will either open the Windows start menu or just do nothing. I'm guessing it's because the game reads keyboards input "raw" and doesn't go through the Autohotkey or SharpKeys layer...
And yes, I could switch the key bindings in-game but I don't want to do that. I don't want to go through the key bindings of every game and switch out the LeftAlt key.

So anyway, I'm looking for a hardware based solution. I was thinking maybe an Arduino or Teensy or something that I connect the Apple keyboard to, and then I connect that thing to my PC which will see it as a regular USB keyboard.

So it will go: Apple Magic Keyboard - USB - (magic key remapping box) - USB - PC

Does anyone have experience with this kind of thing and could maybe give me some points in the right direction?

EDIT: Or if anyone knows of a non-Apple keyboard that is flat/has scissor switches and maybe even NKRO that'd be great too
« Last Edit: Fri, 24 May 2019, 07:59:34 by lambdan »

Offline Findecanor

  • Posts: 5082
  • Location: Koriko
Re: Hardware based key remapping for Apple Magic Keyboards?
« Reply #1 on: Fri, 24 May 2019, 08:03:16 »
Check out hasu's USB to USB keyboard converter.
The layout is programmable by modifying the firmware's source code but there is a web service for that with a graphic interface. Then you would only have to download it to the device.
Of course this will add some lag to keyboard inputs though, but it might be small enough that you won't notice it.

I think there might be people in the Hackintosh community who would have got Apple's "Boot Camp" keyboard driver to work on non-Apple PCs, and I think that driver offers a control panel for swapping Alt/Option and Windows/Command keys at the driver level: before key mapping. But I can't give you more than that lead, and it might lead nowhere.

Edit: I don't think a scissor switch keyboard with NKRO exists. Mechanical keyboards with flat keys and (nearly) NKRO do exist but the key feel is different.
« Last Edit: Fri, 24 May 2019, 08:06:35 by Findecanor »
🍉

Offline lambdan

  • Thread Starter
  • Posts: 5
  • Location: sweden
Re: Hardware based key remapping for Apple Magic Keyboards?
« Reply #2 on: Fri, 24 May 2019, 12:28:16 »
Check out hasu's USB to USB keyboard converter.
The layout is programmable by modifying the firmware's source code but there is a web service for that with a graphic interface. Then you would only have to download it to the device.
Of course this will add some lag to keyboard inputs though, but it might be small enough that you won't notice it.

I think there might be people in the Hackintosh community who would have got Apple's "Boot Camp" keyboard driver to work on non-Apple PCs, and I think that driver offers a control panel for swapping Alt/Option and Windows/Command keys at the driver level: before key mapping. But I can't give you more than that lead, and it might lead nowhere.

Edit: I don't think a scissor switch keyboard with NKRO exists. Mechanical keyboards with flat keys and (nearly) NKRO do exist but the key feel is different.

Thanks, gonna look into that. Sounds like what I'm looking for.

And yeah the offerings on the scissor switch market are few.... Apart from Apple's I don't really know what there is other than the Logitech K740 Illuminated, which apparently has really terrible KRO.