XBMC Community Forum  

Go Back   XBMC Community Forum > Help and Support > XBMC General Help and Support > XBMC for Mac and AppleTV Specific Support

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.

Reply
 
Thread Tools Search this Thread Display Modes
Old 2008-02-08, 17:54   #1
_tv_
Member
 
Join Date: Feb 2008
Posts: 30
_tv_ is on a distinguished road
Thumbs up [MAC] HOW-TO use Sony PS3 Bluetooth Remote to control XBMC for Mac

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
_tv_ is offline   Reply With Quote
Old 2008-02-09, 00:16   #2
elan
Team Plex
 
Join Date: Dec 2007
Location: Maui
Posts: 268
elan is on a distinguished road
Send a message via Skype™ to elan
Default

Thanks for posting this!

-elan
__________________
Plex
elan is offline   Reply With Quote
Old 2008-02-09, 01:08   #3
bmfrosty
Senior Member
 
Join Date: Mar 2007
Posts: 188
bmfrosty is on a distinguished road
Default

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.
bmfrosty is offline   Reply With Quote
Old 2008-02-11, 03:03   #4
_tv_
Member
 
Join Date: Feb 2008
Posts: 30
_tv_ is on a distinguished road
Default

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?
_tv_ is offline   Reply With Quote
Old 2008-02-11, 09:47   #5
Dudeman
Member
 
Join Date: Jan 2008
Posts: 43
Dudeman is on a distinguished road
Default

Quote:
Originally Posted by _tv_ View Post
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?
I just did. I went to Best Buy today and bought the PS3 BT remote. And It works quite well !!

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
Dudeman is offline   Reply With Quote
Old 2008-02-19, 15:07   #6
_tv_
Member
 
Join Date: Feb 2008
Posts: 30
_tv_ is on a distinguished road
Default

Quote:
Originally Posted by Dudeman View Post
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.
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?
_tv_ is offline   Reply With Quote
Old 2008-03-02, 03:06   #7
jeremymc7
Senior Member
 
Join Date: Feb 2008
Posts: 146
jeremymc7 is on a distinguished road
Default

Quote:
Originally Posted by _tv_ View Post
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?

Any update on getting a config for the PS3 remote?
jeremymc7 is offline   Reply With Quote
Old 2008-03-03, 02:47   #8
_tv_
Member
 
Join Date: Feb 2008
Posts: 30
_tv_ is on a distinguished road
Default

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);
_tv_ is offline   Reply With Quote
Old 2008-03-03, 04:39   #9
iordonez
Team Plex
 
Join Date: Feb 2008
Location: SFBA
Posts: 324
iordonez is on a distinguished road
Default

Quote:
Originally Posted by _tv_ View Post
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?
Just a chime in here... The answer I feels fits best is both.

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.
iordonez is offline   Reply With Quote
Old 2008-03-03, 13:32   #10
_tv_
Member
 
Join Date: Feb 2008
Posts: 30
_tv_ is on a distinguished road
Default

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!
_tv_ is offline   Reply With Quote
Reply

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:27.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project