Add More OptionsList functionality (#1810)
* Add More OptionsList functionality * Remove Size parameter because it's broken * Make OptionsList inputs remappable * Change Next/Prev OptionsList to CodeDetector
This commit is contained in:
committed by
Colby Klein
parent
3eb03feadd
commit
dcb2f74c8d
@@ -53,6 +53,8 @@ const char *CodeNames[] = {
|
||||
"CancelAllPlayerOptions",
|
||||
"BackInEventMode",
|
||||
"CloseCurrentFolder",
|
||||
"PrevOptionsList",
|
||||
"NextOptionsList"
|
||||
};
|
||||
XToString( Code );
|
||||
|
||||
@@ -116,6 +118,15 @@ bool CodeDetector::EnteredModeMenu( GameController controller )
|
||||
return EnteredCode(controller,CODE_MODE_MENU1) || EnteredCode(controller,CODE_MODE_MENU2);
|
||||
}
|
||||
|
||||
bool CodeDetector::EnteredPrevOpList( GameController controller )
|
||||
{
|
||||
return EnteredCode(controller,CODE_PREV_OPLIST);
|
||||
}
|
||||
bool CodeDetector::EnteredNextOpList( GameController controller )
|
||||
{
|
||||
return EnteredCode(controller,CODE_NEXT_OPLIST);
|
||||
}
|
||||
|
||||
#define TOGGLE(v,a,b) if(v!=a) v=a; else v=b;
|
||||
#define FLOAT_TOGGLE(v) if(v!=1.f) v=1.f; else v=0.f;
|
||||
// XXX: Read the metrics file instead!
|
||||
|
||||
Reference in New Issue
Block a user