kairyu / tkg

TMK Keymap Generator
http://tkg.io
97 stars 30 forks source link

"play" and "apple play" does not work #8

Open djensen47 opened 8 years ago

djensen47 commented 8 years ago

When I try to use the "play" or the "apple play" labels, the behavior is not correct. Instead of Play/Pause behavior, I end up with Previous Track behavior.

It seems odd because in the source code is definitely using a different keycode for play pause.

Here's my raw layout data.

["F1\n\n\n\nFn17","F2\n\n\n\nFn24",{x:0.25,a:0},"Esc\n\n\n\n~\n`",{c:"#ffac00",a:4},"!\n1\n\n\nF1",{c:"#008fb0"},"@\n2\n\n\nF2",{c:"#249c78"},"#\n3\n\n\nF3",{c:"#a89f8d"},"$\n4\n\n\nF4",{c:"#dca2c8"},"%\n5\n\n\nF5",{c:"#cccccc"},"^\n6\n\n\nF6","&\n7\n\n\nF7","*\n8\n\n\nF8","(\n9\n\n\nF9",")\n0\n\n\nF10","_\n-\n\n\nF11","+\n=\n\n\nF12",{w:2},"Backspace",{c:"#008fb0"},"Delete"],
[{c:"#cccccc"},"F3\n\n\n\nFn10","F4\n\n\n\nFn22",{x:0.25,w:1.5},"Tab","Q","W\n\n\n\n↑","E\n\n\n\nFn5","R\n\n\n\nFn6","T\n\n\n\nFn7","Y\n\n\n\nCalc","U","I\n\n\n\nIns","O\n\n\n\nApple Play","P\n\n\n\nPSc","{\n[\n\n\nScrLk",{a:0},"}\n]\n\n\nPus\nBrk",{a:4,w:1.5},"|\n\\",{c:"#008fb0"},"PgUp\n\n\n\nVolUp"],
[{c:"#cccccc"},"F5\n\n\n\nFn14","F6\n\n\n\nFn16",{x:0.25,w:1.75},"Fn0","A\n\n\n\n←","S\n\n\n\n↓","D\n\n\n\n→","F\n\n\n\nFn8","G\n\n\n\nFn9","H","J","K","L",":\n;\n\n\nHome","\"\n'\n\n\nPgUp",{w:2.25},"Enter",{c:"#008fb0"},"PgDn\n\n\n\nVolDn"],
[{c:"#cccccc"},"F7\n\n\n\nFn25","F8\n\n\n\nFn27",{x:0.25,w:2.25},"Shift","Z","X\n\n\n\nApp","C\n\n\n\nFn1","V\n\n\n\nFn2","B\n\n\n\nFn3","N\n\n\n\nVolDn","M\n\n\n\nVolUp","<\n,\n\n\nMute",">\n.\n\n\nEnd","?\n/\n\n\nPgDn",{w:1.75},"RShift",{c:"#ffac00"},"↑\n\n\n\nPrev",{c:"#008fb0"},"End\n\n\n\nMute"],
[{c:"#cccccc"},"F9\n\n\n\nFn15","F10\n\n\n\nFn13",{x:0.25,w:1.25},"Ctrl",{w:1.25},"Win",{w:1.25},"Alt",{w:6.25},"Space","RAlt","Fn0","RCtrl",{c:"#ffac00"},"←","↓\n\n\n\nNext","→\n\n\n\nPlay"]
djensen47 commented 8 years ago

If it matters, I have a RedScarfII+

djensen47 commented 8 years ago

So it turns out that if I map "eject" to a key, then that is actually Play/Pause. 😕

kairyu commented 7 years ago

Sorry for the long delay. The fix 40c927b3 was only staying in the dev site for a long time. Now I have committed it to master and applied it to tkg.io. It should work well with your RedScarfII+.

dionmunk commented 7 years ago

I am also experiencing this issue with a GH60 RevCHN. I have tried Play/Apple Play and they do not work. I have also tried Eject like @djensen47 mentioned and that actually opened up the Calculator in Windows 10 for me.

I have a Dell U473D Slim Multimedia Keyboard that has the Prev Play/Pause and Next buttons on it. This keyboard works on Mac and Windows. On my Mac using Karabiner-EventViewer I can see that the Play/Pause button registers as 0x10 vk_consumer_play. This is the same key event that registers when F8/PlayPause key is pressed on the Mac keyboard itself.

dionmunk commented 7 years ago

After doing some experimenting I figured out that RWD works as Play/Pause for the GH60 RevCHN. It registers as 0x10 vk_consumer_play in Karabiner-EventViewer.