DPRCZ / gpsp

gpsp - Raspberry pi port
GNU General Public License v2.0
40 stars 35 forks source link

How can i change the menu combo #4

Open GM-Script-Writer-62850 opened 9 years ago

GM-Script-Writer-62850 commented 9 years ago

To my understanding Select+R is hard coded, where is this at inte source code i would liek to change it to select+start, i plany to recompile this on a raspberry pi im using USB SNES controllers

IF i can define save/load state as well as a exit combo that would be even better here are the buttons to numbers that the controllers use

b_btn = "2"
y_btn = "3"
select_btn = "8"
start_btn = "9"
up_axis = "-1"
down_axis = "+1"
left_axis = "-0"
right_axis = "+0"
a_btn = "1"
x_btn = "0"
l_btn = "4"
r_btn = "5"

preferbally i would like to make Select + L = Save state Select + R = Load state Select + Start = exit

alternativaly i would like to make Slect + Start the menu

DPRCZ commented 9 years ago

You can change it in file "input.c" ..... if ((menu_hotkey) && ( newkey == (BUTTON_SELECT | BUTTON_R))) { newkey &= ~(BUTTON_SELECT | BUTTON_R); .....

GM-Script-Writer-62850 commented 9 years ago

thanks