added vb overrides
This commit is contained in:
parent
815d58fe89
commit
af73880160
2 changed files with 31 additions and 2 deletions
|
|
@ -26,6 +26,7 @@
|
|||
#include "overrides/fceumm.h"
|
||||
#include "overrides/gambatte.h"
|
||||
#include "overrides/gpsp.h"
|
||||
#include "overrides/mednafen_vb.h"
|
||||
#include "overrides/pcsx_rearmed.h"
|
||||
#include "overrides/picodrive.h"
|
||||
#include "overrides/pokemini.h"
|
||||
|
|
@ -35,6 +36,7 @@ static CoreOverrides* overrides[] = {
|
|||
&fceumm_overrides,
|
||||
&gambatte_overrides,
|
||||
&gpsp_overrides,
|
||||
&mednafen_vb_overrides,
|
||||
&pcsx_rearmed_overrides,
|
||||
&picodrive_overrides,
|
||||
&pokemini_overrides,
|
||||
|
|
@ -1178,9 +1180,12 @@ static bool environment_callback(unsigned cmd, void *data) { // copied from pico
|
|||
const struct retro_input_descriptor* var = &vars[i];
|
||||
if (var->port==0 && var->device==RETRO_DEVICE_JOYPAD && var->index==0) {
|
||||
if (var->id>=RETRO_BUTTON_COUNT) {
|
||||
printf("%s unavailable\n", var->description); fflush(stdout);
|
||||
printf("UNAVAILABLE: %s\n", var->description); fflush(stdout);
|
||||
continue;
|
||||
}
|
||||
else {
|
||||
printf("PRESENT : %s\n", var->description); fflush(stdout);
|
||||
}
|
||||
present[var->id] = 1;
|
||||
core_button_names[var->id] = var->description;
|
||||
}
|
||||
|
|
@ -1188,7 +1193,7 @@ static bool environment_callback(unsigned cmd, void *data) { // copied from pico
|
|||
|
||||
for (int i=0;default_button_mapping[i].name; i++) {
|
||||
ButtonMapping* mapping = &default_button_mapping[i];
|
||||
LOG_info("DEFAULT %s: <%s>\n", mapping->name, (mapping->local==BTN_ID_NONE ? "NONE" : device_button_names[mapping->local]));
|
||||
LOG_info("DEFAULT %s (%s): <%s>\n", core_button_names[mapping->retro], mapping->name, (mapping->local==BTN_ID_NONE ? "NONE" : device_button_names[mapping->local]));
|
||||
}
|
||||
|
||||
for (int i=0; config.controls[i].name; i++) {
|
||||
|
|
|
|||
24
src/minarch/overrides/mednafen_vb.h
Normal file
24
src/minarch/overrides/mednafen_vb.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#include "overrides.h"
|
||||
|
||||
static CoreOverrides mednafen_vb_overrides = {
|
||||
.core_name = "mednafen_vb",
|
||||
.option_overrides = (OptionOverride[]){
|
||||
{"vb_3dmode", "anaglyph", 1}, // others crash frontend
|
||||
{NULL,NULL},
|
||||
},
|
||||
.button_mapping = (ButtonMapping[]){
|
||||
{"Up", RETRO_DEVICE_ID_JOYPAD_UP, BTN_ID_UP},
|
||||
{"Down", RETRO_DEVICE_ID_JOYPAD_DOWN, BTN_ID_DOWN},
|
||||
{"Left", RETRO_DEVICE_ID_JOYPAD_LEFT, BTN_ID_LEFT},
|
||||
{"Right", RETRO_DEVICE_ID_JOYPAD_RIGHT, BTN_ID_RIGHT},
|
||||
{"Select", RETRO_DEVICE_ID_JOYPAD_SELECT, BTN_ID_SELECT},
|
||||
{"Start", RETRO_DEVICE_ID_JOYPAD_START, BTN_ID_START},
|
||||
{"A", RETRO_DEVICE_ID_JOYPAD_A, BTN_ID_A},
|
||||
{"B", RETRO_DEVICE_ID_JOYPAD_B, BTN_ID_B},
|
||||
{"Low Battery", RETRO_DEVICE_ID_JOYPAD_X, BTN_ID_NONE},
|
||||
{"L Button", RETRO_DEVICE_ID_JOYPAD_L, BTN_ID_L1},
|
||||
{"R Button", RETRO_DEVICE_ID_JOYPAD_R, BTN_ID_R1},
|
||||
{NULL},
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue