![]() |
|
|||||||
| XBMC for Mac and AppleTV Specific Support Need help with XBMC for Mac or Apple TV, or think you've found a bug? Discuss it here. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Member
Join Date: Feb 2008
Posts: 30
![]() |
Yeh, I know this is dirty hack.
Yeh, I know this is ugly. Yeh, I know this is unfinished in all ways. Yeh, I know this is not customizeable in any way. Yeh, I know this might crash. Okay, someone asked for this in blog's comments. This is about my first cocoa/obj-c apps so it is ugly and poorly made and full of things that are not implemented. So this is small app which connects to PS3 BD remote via Bluetooth and binds buttons to keyboard presses and that way is able to control XBMC. No, keys are not rebindable yet. No, it doesnt support long presses yet. Usage: Start ps3remote.app Press enter and start simoltaneously and click connect, keep pressing enter and start until connect. If it gets connection, it should work, just start XBMC and start using it. If it didn't, try again. UI hides itself when not in focus (click from dock to see it again) Keys binded. Arrows, enter, back, return, play, stop, scanfwd, scanrew, stepfwd and steprew. Works with default keymap.xml. As I said, I'm cocoa newb so development will be slow. Next goal is to get long presses working. Sourcecode will come when I have cleaned it up. Then later maybe implement this straight to XBMC but there is not Nothing more to say, I hope this will be usefull to someone (I doubt that) Alpha 0.01: HTML Code:
http://tv.aninga.net/ps3remote.app.zip |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Mar 2007
Posts: 188
![]() |
Hrm. I wish I could offer to write something like this, but I really don't have the skills. It seems to me that eventually XBMC should have a built in bluetooth sync menu and a remote selection menu.
|
|
|
|
|
|
#4 |
|
Member
Join Date: Feb 2008
Posts: 30
![]() |
No one's really tried this yet? Oh well, I'm off for a week. But when I got back in business, I'll try to include this to OSXBMC. Elan, could you post full compilation information somewhere (which macports I need, which ffmpeg it uses and configs and so on). There is no way to do controls modularily? Would there even be someone intrested in using ps3 remote for their OSXBMC?
|
|
|
|
|
|
#5 | |
|
Member
Join Date: Jan 2008
Posts: 43
![]() |
Quote:
![]() Thank you for your contribution. I'm not a programmer, but I did look at the resources inside your app hoping I could find some means to assign the keys, but unfortunately I didn't. AS it looks right now, the app is useful for basic navigation, which is pretty good, especially if you consider it's the only game in town. Is there a way to add some sort of a configuration, even if it's via a "config" file (text, xml, etc), where you can define the key binding? Tha would really go a long way to make this really useful. It doesn't have to be pretty, just workable. Thanks again. Dudeman
|
|
|
|
|
|
|
#6 |
|
Member
Join Date: Feb 2008
Posts: 30
![]() |
Okay I'm back. Yeh, It doesn't have it yet, but I promise there will be some sort of config coming. Dont really know how to do it easily but I'll look for it. There are two ways to make this progg awesome: 1) Make it like RemoteBuddy or 2) integrate it to XBMC. Either way, I cant do it yet. But which do you users think was better?
|
|
|
|
|
|
#7 | |
|
Senior Member
Join Date: Feb 2008
Posts: 146
![]() |
Quote:
Any update on getting a config for the PS3 remote? |
|
|
|
|
|
|
#8 |
|
Member
Join Date: Feb 2008
Posts: 30
![]() |
Working on it, trying to get pushed down buttons work but I cant really think get it to work as it should.. I think I'll skip that feature for now and try to do configs first. I'll look what I can do tonight or tomorrow.
ps. Could some obj-c guru tell me why doesnt push button down but only taps it, maybe it's because that kCGSessionEventTap? I could'nt find anything better for that.. event = CGEventCreateKeyboardEvent(NULL, key, TRUE); CGEventPost(kCGSessionEventTap, event); |
|
|
|
|
|
#9 | |
|
Team Plex
Join Date: Feb 2008
Location: SFBA
Posts: 324
![]() |
Quote:
1) A a stand alone app this could have the possibility to integrate with so many other programs, such as frontrow, Powerpoint, etc. 2) Having to open a program to get remote support working in XBMC is a hassle and very un-mac like. Integration with XBMC and some sort of BT pairing option inside it's settings would make for the ultimate simplicity. |
|
|
|
|
|
|
#10 |
|
Member
Join Date: Feb 2008
Posts: 30
![]() |
Okay, here it is. new version of ps3remote. This time with basic configurability. Config file can be found from ~/Library/Preferences/com.yourcompany.ps3remote.plist , lauch new version once and it will create necessary data there and then you are good to go with configurations.. Only drawback is you have to use CGkeyCode numbers found in example here http://developer.apple.com/documenta...t/Text-33.html. There are some tools for this too but I haven't look for them too much.
Release 0.2: http://tv.aninga.net/ps3remote0.2.app.zip Next version will come with something daemon-like OR "sticky" buttons OR something else nice. Better configurationpanel would be nice too.. Good luck and see you later! |
|
|
|
![]() |
| Bookmarks |
| Tags |
| bluetooth, how to, how-to, howto |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|