can you post some detail about how to do this? i'd love to be able to have my third-party IR receiver + apple remote 'just work' like the real thing.
cheers
Printable View
munky: please refer to the attached source file, it is a slight modification of bholland's KeyboardReader(originally by bikedude808). it can get the event from a remote control as well as an usb keyboard. in order to make your remote to work, you should know the button id's(in hex value) for any six buttons of your choice in your remote control, and add those value to the InterruptReportCallbackFunction at the bottom of main.c... and that's all.
but usaully, the button id's of arrow keys on a keyboard and arrow buttons on a remote control are same, so you shoud map the other remote control buttons for navigation except arrow buttons(since they are already in use by the keyboard). in my sample codes, i mapped my remote control buttons like this:
- [Stop] button of my remote => [Menu] button of Apple Remote.
- [Play] button of my remote => [Play] button of Apple Remote.
- [Skip Fwd(Next)] button of my remote => [Right] button of Apple Remote.
- [F.Rewind] button of my remote => [Left] button of Apple Remote.
- [F.Foward] button of my remote => [Minus/Down] button of Apple Remote.
- [Pause] button of my remote => [Plus/Up] button of Apple Remote.
i know it is somewhat weird mappings, but this layout is fit for my own remote control.:D and any kind of remote control has those buttons in common values, first of all, you can test your remote control's stop, pause, play, etc.. and see what happens. or you can use your own button id's for that.
fyi: comments 'Jungfrau' in the source code refers my own remote control(built-in on my system). actually 'Jungfrau' is the code-name of our project TVPC (you can see the review for it at http://www.notegear.com/Content/Cont...Num=533&kind=2 , if you can read korean. :rolleyes: )
tip: you can use hclient(in WinDDK) to get your remote control buttons' id on windows. in fact, i'm a newcomer on the mac os.. don't know which tools are good for investigate hid devices.. maybe 'hid explorer' at ADC is good enough on mac os..:confused: when i'm accustomed to develop on mac os environment, will go further.. :p
best regards,
david
I am trying to get it to work with Sailing Clicker !
DCPark: You, sir, are a gentleman and a scholar. Thank you very much!!
I will try this out if I can find a little time to spare ;)
Thx again
alright! i got aTV control with a Griffin AirclickUSB remote:
bholland's irkeyboardemu.kext + loc[a]lhost's RemoteControl.app + custom applescripts for Griffin's airclick.app
all together = remote for hackint0shTV for about $25
Yo,
Congrats diabolik! Glad to hear its working well for you!
For those still having problems with the kext adjusting the volume while controlling, or adjusting the volume but not controlling, try removing rcd.app from /System/Library/CoreServices/rcd.app. This will stop osx from accepting any remote commands. This might give the ability to control aTV to those who can't and it most definitely will stop the annoying volume up and down every time you press up or down in aTV. Let me know if this works for you.
Peace,
-bholland
ia there any kext, which doesn't block usb device ?
Do you think guy is there a way for your scripts to work with remote buddy ?
This is the last step i need to get back row working on my mac mini ... because then i will be able to switch btw eyetv also !
Thanks for your help,
archaos
netkas- bholland mentions in the readme and somewhere in this thread that he is working on making the kext not steal all control of the usb device it is ascociated with....so im sure its just a matter of time.