mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	implement circle pad modifier
This commit is contained in:
		@@ -53,6 +53,7 @@ static const std::array<int, Settings::NativeInput::NUM_INPUTS> defaults = {
 | 
			
		||||
 | 
			
		||||
    // indirectly mapped keys
 | 
			
		||||
    SDL_SCANCODE_UP, SDL_SCANCODE_DOWN, SDL_SCANCODE_LEFT, SDL_SCANCODE_RIGHT,
 | 
			
		||||
    SDL_SCANCODE_D,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
void Config::ReadValues() {
 | 
			
		||||
@@ -61,6 +62,7 @@ void Config::ReadValues() {
 | 
			
		||||
        Settings::values.input_mappings[Settings::NativeInput::All[i]] =
 | 
			
		||||
            sdl2_config->GetInteger("Controls", Settings::NativeInput::Mapping[i], defaults[i]);
 | 
			
		||||
    }
 | 
			
		||||
    Settings::values.pad_circle_modifier_scale = (float)sdl2_config->GetReal("Controls", "pad_circle_modifier_scale", 0.5);
 | 
			
		||||
 | 
			
		||||
    // Core
 | 
			
		||||
    Settings::values.frame_skip = sdl2_config->GetInteger("Core", "frame_skip", 0);
 | 
			
		||||
 
 | 
			
		||||
@@ -31,6 +31,11 @@ pad_circle_up =
 | 
			
		||||
pad_circle_down =
 | 
			
		||||
pad_circle_left =
 | 
			
		||||
pad_circle_right =
 | 
			
		||||
pad_circle_modifier =
 | 
			
		||||
 | 
			
		||||
# The applied modifier scale to circle pad.
 | 
			
		||||
# Must be in range of 0.0-1.0. Defaults to 0.5
 | 
			
		||||
pad_circle_modifier_scale =
 | 
			
		||||
 | 
			
		||||
[Core]
 | 
			
		||||
# The applied frameskip amount. Must be a power of two.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user