mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
fake move: add gyro support
This commit is contained in:
parent
92d0707291
commit
415c2d0795
21 changed files with 458 additions and 187 deletions
|
|
@ -58,6 +58,7 @@ ds3_pad_handler::ds3_pad_handler()
|
|||
b_has_rgb = false;
|
||||
b_has_player_led = true;
|
||||
b_has_pressure_intensity_button = false; // The DS3 obviously already has this feature natively.
|
||||
b_has_orientation = true;
|
||||
|
||||
m_name_string = "DS3 Pad #";
|
||||
m_max_devices = CELL_PAD_MAX_PORT_NUM;
|
||||
|
|
@ -199,6 +200,7 @@ void ds3_pad_handler::init_config(cfg_pad* cfg)
|
|||
|
||||
cfg->pressure_intensity_button.def = ::at32(button_list, DS3KeyCodes::None);
|
||||
cfg->analog_limiter_button.def = ::at32(button_list, DS3KeyCodes::None);
|
||||
cfg->orientation_reset_button.def = ::at32(button_list, DS3KeyCodes::None);
|
||||
|
||||
// Set default misc variables
|
||||
cfg->lstick_anti_deadzone.def = 0;
|
||||
|
|
@ -462,6 +464,9 @@ void ds3_pad_handler::get_extended_info(const pad_ensemble& binding)
|
|||
//pad->m_sensors[1].m_value = polish_value(pad->m_sensors[1].m_value, 226, 226, 512, 512, 0, 1023);
|
||||
//pad->m_sensors[2].m_value = polish_value(pad->m_sensors[2].m_value, 113, 113, 512, 512, 0, 1023);
|
||||
//pad->m_sensors[3].m_value = polish_value(pad->m_sensors[3].m_value, 1, 1, 512, 512, 0, 1023);
|
||||
|
||||
// Set raw orientation
|
||||
set_raw_orientation(*pad);
|
||||
}
|
||||
|
||||
bool ds3_pad_handler::get_is_left_trigger(const std::shared_ptr<PadDevice>& /*device*/, u64 keyCode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue