Skip to content

Instantly share code, notes, and snippets.

@koush
Last active December 9, 2016 21:34
Show Gist options
  • Select an option

  • Save koush/e375e188db0eab6172c4 to your computer and use it in GitHub Desktop.

Select an option

Save koush/e375e188db0eab6172c4 to your computer and use it in GitHub Desktop.
//
// 2/24/2016 1:58:42 PM
// Script generated by MAX Mapper Plugin
//----------------------------------------
unmap PS4_SHARE;
remap TRACE_1 -> PS4_SHARE;
unmap PS4_TOUCH;
remap TRACE_2 -> PS4_TOUCH;
unmap PS4_OPTIONS;
remap TRACE_3 -> PS4_OPTIONS;
unmap PS4_ACCX;
unmap PS4_ACCY;
unmap PS4_ACCZ;
main {
if (get_val(XB1_VIEW) && get_val(XB1_MENU)) {
set_val(TRACE_1, get_val(XB1_VIEW));
}
else {
set_val(TRACE_1, 0);
}
if (get_val(XB1_VIEW) && !get_val(XB1_MENU)) {
set_val(TRACE_2, get_val(XB1_VIEW));
}
else {
set_val(TRACE_2, 0);
}
if (get_val(XB1_MENU) && !get_val(XB1_VIEW)) {
set_val(TRACE_3, get_val(XB1_MENU));
}
else {
set_val(TRACE_3, 0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment