2009-12-08, 11:50
Keep in mind that if you apply the registry change you will no longer be able to start your MCE with the green button.
case SDL_KEYDOWN:
{
// process any platform specific shortcuts before handing off to XBMC
#ifdef __APPLE__
if (ProcessOSXShortcuts(event))
{
ret = true;
break;
}
#endif
XBMC_Event newEvent;
newEvent.type = XBMC_KEYDOWN;
newEvent.key.keysym.scancode = event.key.keysym.scancode;
newEvent.key.keysym.sym = (XBMCKey) event.key.keysym.sym;
newEvent.key.keysym.mod =(XBMCMod) event.key.keysym.mod;
newEvent.key.keysym.unicode = event.key.keysym.unicode;
newEvent.key.state = event.key.state;
newEvent.key.type = event.key.type;
newEvent.key.which = event.key.which;
case SDL_KEYDOWN:
{
// process any platform specific shortcuts before handing off to XBMC
#ifdef __APPLE__
if (ProcessOSXShortcuts(event))
{
ret = true;
break;
}
#endif
XBMC_Event newEvent;
newEvent.type = XBMC_KEYDOWN;
newEvent.key.keysym.scancode = event.key.keysym.scancode;
newEvent.key.keysym.sym = (XBMCKey) event.key.keysym.sym;
newEvent.key.keysym.mod =(XBMCMod) event.key.keysym.mod;
newEvent.key.keysym.unicode = event.key.keysym.unicode;
newEvent.key.state = event.key.state;
newEvent.key.type = event.key.type;
newEvent.key.which = event.key.which;
if(event.key.keysym.mod >= 64)
{
newEvent.key.keysym.unicode = event.key.keysym.sym;
}