-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media keys on Mac #195
Comments
hm, I don't have Mac nor idea on this. I think you may be able to know what keycodes you can use on mac by skiming the sources around here. |
Hm, looks to me like those keys should work.
https://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-606.1.7/IOHIDFamily/IOHIDConsumer.cpp |
When running usb overdrive it recognizes the next track button on my keyboard as a different next track button then on the internal keyboard, wonder if there is 2 almost identical codes for next track. Do you know of any program that can see what scancodes that im sending with the internal keyboard for mac? |
I don't know how to get scancode on OS X. But from reading source codes I guess USB Apple Keyboard sends F6 or F8 as normal keycode and Fn in Apple vendor specific usage page. What do you mean with "internal keyboard" actually? Macbook builtin keyboard? |
Yeah the internal keyboard on my laptop :) f7 and f9 is prev and next. i could be like that. You can choose to use fn+f7 or just f7 for prev track via config in systemprefs |
But the config in systemprefs only works on the built in keyboard not on my tmk one even thou it has a fn layer |
Fn key on tmk is completely different from Mac. It doesn't send any key code basically. Mac mediakey functions on macbook and apple keyboard are vendor specific unfortunately, systempref works only for apple hardware. But as I said previously Mac seems to support standard HID media control codes too. Tmk can send only the standard codes. To me weird thing here is why MPLY only works. Any other Mac user here? can you confirm this problem? |
The mnxt and mprv do work with itunes i just noticed, but not with spotify or vlc. If i look in USB overdrive the MPLY and VOLU and VOLD only have one entry (one scancode i guess) but the MNXT and MPRV has 2 entrys each. |
Interesting. |
If you want any help just tell me, im not that good with programming but I can troubleshoot for you if you want to :D |
Do you have tried this #160 ? |
I have not will try it |
Thanks, kairyu.
bhaap, close this issue if it works for you. |
The MFFD and MRWD does not work for me. Not in itunes nor in spotify. USB Overdrive does not even recognize the command (does not register a keystroke when i press the button). Maby I have a old master. need to check that. brb |
Oh, shame. |
The MNXT and MPRV do work as i said with itunes, but for some reason it doesnt work with Spotify and other 3rd party apps. Very wierd. Trying to find out how i can scan the USB for codes so that i can update you with the right keycode. |
Got this from a mac programmer: The easiest way to capture them without having iTunes interfere is setting up an event tap for NX_SYSDEFINED/NSSystemDefined events. From there, one way to identify individual media keys is converting the tapped CGEvent to an NSEvent and looking at the NSEvent's -data1." This tells me nothing but might tell you something :P |
I am also having this issue. MNXT and MPRV don't do anything system wide (spotify, vlc etc), and the PR #160 that implements MFFD and MRWD also don't do anything, I would say that PR doesn't solve any issues. I'm happy to help as my ergodox won't be acceptable as my daily driver until I can control media on OSX. |
You need this Fix too. |
https://geekhack.org/index.php?topic=71702.msg1789509#msg1789509 On Mac just use All fixes were already merged in my TMK repository you don't need any patch for this. For Ergodox version(https://github.com/cub-uanic/tmk_keyboard) you need to apply two patches. See cub-uanic#22 |
TODO: |
fixes an obvious typo to have DE_LCBR produce {
I'm currently using OSX El Capitan (10.11.3), MNXT & MPRV are working correctly but MPLY is not working at all. |
Huh, confusing as hell. Ditch OSX or give up those keys. |
I've been using TMK on OSX for months, MPLY worked for me all this time, didn't have any issues at any point |
hmm, my current keymap:
MPRV & MNXT works but not MPLY, am I doing anything wrong? |
I can't see anything wrong, it triggers, plays, pauses iTunes, or VLC for me, whichever is active The only possible difference is that I'm using a 4-5 months old firmware, yet I don't think that would make a difference, correct me If I'm wrong |
I'm having the same issue on Linux with a build from yesterday.
On my previous build (from January 17th) they were all working. |
I've looked into this, it's a regression of #199 from commit 5e9b21d.
Possible fixes are: restoring the order of the enum, placing |
@Nephiel Awesome, It works now. Thank you for taking time investigating this issue |
The KC_MNXT and KC_MPRV does not work on Mac, The MPLY works thou, have i missed that this is intended and there is another code for mac media keys?
The text was updated successfully, but these errors were encountered: