Exophase
Nothing good will ever come of Exophase.
I also like the idea of configurable default buttons.
But it needs to be done in a way that even not very experienced porters (like myself) can implement that in their ports.
I know how to change SDL button configs when porting a game... would that "Action"-Button have it's own SDL keycode, or how would that work?
The proposal is to implement it through environment variables, so the code would look something like this (in C):
Code:
const char *confirm_key_str = getenv("PYRA_ACTION_CONFIRM");
int confirm_key = PYRA_ACTION_CONFIRM_DEFAULT;
if(confirm_key_str)
confirm_key = strtol(confirm_key_str, NULL, 10);
// ... code here, get key code
if(SDL_key_code == confirm_key_str)
// Do confirm stuff