Keys on macbook
#1
Hi guys.

First of all, congratulations on an excellent work porting the code!!!

I'm trying XBMC on my macbook on both OS X and Linux (Ubuntu 7.10).
On Linux, I've found when I press "period" or "comma" to move forward or backward on the music list (while playing a song), those keys aren't recognized.

On the log:
00:14:52 T:3071797056 M:940027904 DEBUG: OnKey: 61453 pressed, action is 7
00:14:54 T:3071797056 M:922898432 DEBUG: OnKey: 65470 pressed, action is 0
00:14:54 T:3071797056 M:922923008 DEBUG: OnKey: 65470 pressed, action is 0
00:14:56 T:3071797056 M:922923008 DEBUG: OnKey: 65468 pressed, action is 0
00:14:57 T:3071797056 M:922923008 DEBUG: OnKey: 65468 pressed, action is 0

Tracking the "error" I've modified the file guilib/Key.cpp
from:
DWORD CKey::GetButtonCode() const // for backwards compatibility only
{
return m_dwButtonCode;
}

to:
DWORD CKey::GetButtonCode() const // for backwards compatibility only
{
return m_dwButtonCode&0xf0ff;
}

Now i get:
00:25:53 T:3072182080 M:856227840 DEBUG: OnKey: 61628 pressed, action is 15
00:25:54 T:3072182080 M:840937472 DEBUG: OnKey: 61628 pressed, action is 15
00:25:55 T:3072182080 M:824610816 DEBUG: OnKey: 61630 pressed, action is 14
00:25:56 T:3072182080 M:808800256 DEBUG: OnKey: 61630 pressed, action is 14

I don't know if somebody else is having this "issue", so I'm not sending any patch yet.
Hope it helps.

Regards,
fsonnlei
Reply

Logout Mark Read Team Forum Stats Members Help
Keys on macbook0