select fixes and player profile assignment

This commit is contained in:
thecozies
2025-07-29 14:41:37 -05:00
parent 1ac45d11a6
commit ce12002c28
13 changed files with 236 additions and 40 deletions
-1
View File
@@ -14,7 +14,6 @@ namespace banjo {
void load_config();
void save_config();
void initialize_input_bindings();
void reset_input_bindings();
void reset_cont_input_bindings(int profile_index);
void reset_kb_input_bindings(int profile_index);
+7
View File
@@ -204,8 +204,14 @@ namespace recomp {
int get_controller_by_guid(ControllerGUID guid);
int get_controller_count();
ControllerGUID get_guid_from_sdl_controller(SDL_GameController* game_controller);
int get_controller_profile_index_from_sdl_controller(SDL_GameController* game_controller);
std::string get_string_from_controller_guid(ControllerGUID guid);
void initialize_input_bindings();
int get_sp_controller_profile_index();
int get_sp_keyboard_profile_index();
int get_mp_keyboard_profile_index(int player_index);
bool get_n64_input(int player_index, uint16_t* buttons_out, float* x_out, float* y_out);
void set_rumble(int player_index, bool);
void update_rumble();
@@ -288,6 +294,7 @@ namespace recompinput {
AssignedPlayer& get_assigned_player(int player_index, bool temp_player = false);
bool get_player_is_assigned(int player_index);
recomp::InputDevice get_assigned_player_input_device(int player_index);
void start_player_assignment(void);
void stop_player_assignment(void);
void stop_player_assignment_and_close_modal(void);