mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
input: add battery LED flag and some getters
This commit is contained in:
parent
1a61a7a39f
commit
20f906bf9b
9 changed files with 22 additions and 66 deletions
|
|
@ -53,6 +53,7 @@ ds3_pad_handler::ds3_pad_handler()
|
|||
b_has_motion = true;
|
||||
b_has_deadzones = true;
|
||||
b_has_battery = true;
|
||||
b_has_battery_led = true;
|
||||
b_has_led = true;
|
||||
b_has_rgb = false;
|
||||
b_has_player_led = true;
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ ds4_pad_handler::ds4_pad_handler()
|
|||
b_has_led = true;
|
||||
b_has_rgb = true;
|
||||
b_has_battery = true;
|
||||
b_has_battery_led = true;
|
||||
|
||||
m_name_string = "DS4 Pad #";
|
||||
m_max_devices = CELL_PAD_MAX_PORT_NUM;
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ dualsense_pad_handler::dualsense_pad_handler()
|
|||
b_has_rgb = true;
|
||||
b_has_player_led = true;
|
||||
b_has_battery = true;
|
||||
b_has_battery_led = true;
|
||||
|
||||
m_name_string = "DualSense Pad #";
|
||||
m_max_devices = CELL_PAD_MAX_PORT_NUM;
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@ public:
|
|||
|
||||
void open_home_menu();
|
||||
|
||||
std::map<pad_handler, std::shared_ptr<PadHandlerBase>>& get_handlers() { return m_handlers; }
|
||||
|
||||
static std::shared_ptr<PadHandlerBase> GetHandler(pad_handler type);
|
||||
static void InitPadConfig(cfg_pad& cfg, pad_handler type, std::shared_ptr<PadHandlerBase>& handler);
|
||||
|
||||
|
|
|
|||
|
|
@ -170,6 +170,7 @@ sdl_pad_handler::sdl_pad_handler() : PadHandlerBase(pad_handler::sdl)
|
|||
b_has_led = true;
|
||||
b_has_rgb = true;
|
||||
b_has_battery = true;
|
||||
b_has_battery_led = true;
|
||||
|
||||
m_trigger_threshold = trigger_max / 2;
|
||||
m_thumb_threshold = thumb_max / 2;
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ skateboard_pad_handler::skateboard_pad_handler()
|
|||
b_has_rgb = false;
|
||||
b_has_player_led = false;
|
||||
b_has_battery = false;
|
||||
b_has_battery_led = false;
|
||||
b_has_pressure_intensity_button = false;
|
||||
|
||||
m_name_string = "Skateboard #";
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ xinput_pad_handler::xinput_pad_handler() : PadHandlerBase(pad_handler::xinput)
|
|||
b_has_rumble = true;
|
||||
b_has_deadzones = true;
|
||||
b_has_battery = true;
|
||||
b_has_battery_led = false;
|
||||
|
||||
m_name_string = "XInput Pad #";
|
||||
m_max_devices = XUSER_MAX_COUNT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue