Input: Implement anti deadzone

This commit is contained in:
Megamouse 2024-05-27 21:50:09 +02:00
parent 5b6f340a7b
commit c15121377f
16 changed files with 261 additions and 164 deletions

View file

@ -317,6 +317,8 @@ void dualsense_pad_handler::init_config(cfg_pad* cfg)
cfg->pressure_intensity_button.def = ::at32(button_list, DualSenseKeyCodes::None);
// Set default misc variables
cfg->lstick_anti_deadzone.def = static_cast<u32>(0.13 * thumb_max); // 13%
cfg->rstick_anti_deadzone.def = static_cast<u32>(0.13 * thumb_max); // 13%
cfg->lstickdeadzone.def = 40; // between 0 and 255
cfg->rstickdeadzone.def = 40; // between 0 and 255
cfg->ltriggerthreshold.def = 0; // between 0 and 255