Here's a little code to turn your front LED On/Off..
when added, you can change it in Settings -> General
(dunno if it saves the settings)
Turn front LED On/Off v1
Logged In: YES user_id=772724
REMEMBER!! to add xkutils.cpp to XBoxMediaPlayer source...and xkutils.h and xexports.h to XBoxMediaPlayer header..
Here is a little tweak, to the patch...This will gray out the used function, and sets focus on the other function..
ie.: if "LED ON" is selected, "LED ON" will be grayed out, and it will set focus on "LED OFF"
Open PGeneral.cpp
find:
XKUtils::SetXBOXLEDStatus(0);
below that, add:
SetButtonGrey(15, TRUE); SetButtonGrey(16, FALSE); SetButtonFocus(16);
---------
then find:
XKUtils::SetXBOXLEDStatus (XKUtils::LED_REGISTER_CYCLE0_GREEN|XKUtils::LED_REGIST ER_CYCLE2_GREEN|XKUtils::LED_REGISTER_CYCLE1_GREEN|XK Utils::LED_REGISTER_CYCLE3_GREEN);
SetButtonGrey(15, FALSE); SetButtonGrey(16, TRUE); SetButtonFocus(15);
--------------------------
That's all...EnJoY
//[XC]D-Ice
Logged In: YES user_id=630186
Can this patch be closed as the feature/function in the CVS?
isin't added to cvs yet....but i'll soon add it...as soon i find out to save the changes :-)
Log in to post a comment.
Turn front LED On/Off v1
Logged In: YES
user_id=772724
REMEMBER!! to add xkutils.cpp to XBoxMediaPlayer
source...and xkutils.h and xexports.h to XBoxMediaPlayer
header..
Here is a little tweak, to the patch...This will gray out the
used function, and sets focus on the other function..
ie.: if "LED ON" is selected, "LED ON" will be grayed out, and it
will set focus on "LED OFF"
Open PGeneral.cpp
find:
XKUtils::SetXBOXLEDStatus(0);
below that, add:
SetButtonGrey(15, TRUE);
SetButtonGrey(16, FALSE);
SetButtonFocus(16);
---------
then find:
XKUtils::SetXBOXLEDStatus
(XKUtils::LED_REGISTER_CYCLE0_GREEN|XKUtils::LED_REGIST
ER_CYCLE2_GREEN|XKUtils::LED_REGISTER_CYCLE1_GREEN|XK
Utils::LED_REGISTER_CYCLE3_GREEN);
below that, add:
SetButtonGrey(15, FALSE);
SetButtonGrey(16, TRUE);
SetButtonFocus(15);
--------------------------
That's all...EnJoY
//[XC]D-Ice
Logged In: YES
user_id=630186
Can this patch be closed as the feature/function in the CVS?
Logged In: YES
user_id=772724
isin't added to cvs yet....but i'll soon add it...as soon i find
out to save the changes :-)