Skip to content

Commit

Permalink
didn’t remove mouse_* from mMenuMappingList
Browse files Browse the repository at this point in the history
(Fix: save prompt appears even though there is nothing changed)
  • Loading branch information
khanhduytran0 authored Apr 21, 2023
1 parent b396fef commit 04f2fa5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Natives/customcontrols/CustomControlsUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,6 @@ void generateAndSaveDefaultControlForGamepad() {

dict[@"mMenuMappingList"] = [[NSMutableArray alloc] init];

[dict[@"mMenuMappingList"] addObject:createGamepadButton(@"mouse_primary", SPECIALBTN_MOUSEPRI, SPECIALBTN_MOUSEPRI)];
[dict[@"mMenuMappingList"] addObject:createGamepadButton(@"mouse_middle", SPECIALBTN_MOUSEMID, SPECIALBTN_MOUSEMID)];
[dict[@"mMenuMappingList"] addObject:createGamepadButton(@"mouse_secondary", SPECIALBTN_MOUSESEC, SPECIALBTN_MOUSESEC)];

[dict[@"mMenuMappingList"] addObject:createGamepadButton(@"bumper_left", GLFW_GAMEPAD_BUTTON_LEFT_BUMPER, SPECIALBTN_SCROLLUP)];
[dict[@"mMenuMappingList"] addObject:createGamepadButton(@"bumper_right", GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER, SPECIALBTN_SCROLLDOWN)];

Expand Down

0 comments on commit 04f2fa5

Please sign in to comment.