It shows 49-way because that is what I selected but that mode would never get sent to the GPWiz49. The problem is that it would show 49-way in the settings but in game it would be 8-way. If I understand the code correctly it sets the joysticks to 8-way mode on the way in to the menu and then it's supposed to set it to whatever mode is selected in the menu upon exit. I would exit the menu by either hitting ESC or using the "return" item at the bottom of the menu. I found that when I exited the menu this portion of the code would always test true and therefore exit the function before setting anything to do with the GPWiz49:
if (ui_menu_generic_keys(&selected, menu_items))
return selected;
I changed it to:
if (ui_menu_generic_keys(&selected, menu_items))
{
PowerMAME_update_49way_DRS();
inited_drs = 0;
return selected;
}
Now it sends the command to the controller to change modes and I can get it to got to 49-way (or any other mode I pick).
Thanks,
Bob