mirror of
				https://github.com/Ryujinx/SDL.git
				synced 2025-11-04 15:34:58 +00:00 
			
		
		
		
	Fixed the hat_map to avoid segmentation fault
(cherry picked from commit 57e78f4cf53b0fc84900a047120263c3c71e721c)
This commit is contained in:
		
							parent
							
								
									fa934dd4df
								
							
						
					
					
						commit
						2cb422360c
					
				| 
						 | 
					@ -1400,6 +1400,7 @@ static void RAWINPUT_HandleStatePacket(SDL_Joystick *joystick, Uint8 *data, int
 | 
				
			||||||
        (1 << SDL_CONTROLLER_BUTTON_DPAD_DOWN) | (1 << SDL_CONTROLLER_BUTTON_DPAD_LEFT),
 | 
					        (1 << SDL_CONTROLLER_BUTTON_DPAD_DOWN) | (1 << SDL_CONTROLLER_BUTTON_DPAD_LEFT),
 | 
				
			||||||
        (1 << SDL_CONTROLLER_BUTTON_DPAD_LEFT),
 | 
					        (1 << SDL_CONTROLLER_BUTTON_DPAD_LEFT),
 | 
				
			||||||
        (1 << SDL_CONTROLLER_BUTTON_DPAD_UP) | (1 << SDL_CONTROLLER_BUTTON_DPAD_LEFT),
 | 
					        (1 << SDL_CONTROLLER_BUTTON_DPAD_UP) | (1 << SDL_CONTROLLER_BUTTON_DPAD_LEFT),
 | 
				
			||||||
 | 
					        0,
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    Uint64 match_state = ctx->match_state;
 | 
					    Uint64 match_state = ctx->match_state;
 | 
				
			||||||
    /* Update match_state with button bit, then fall through */
 | 
					    /* Update match_state with button bit, then fall through */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue