1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-21 18:22:33 +01:00

Input: rename misleading ThreadProc to process

This commit is contained in:
Megamouse 2022-10-21 22:48:38 +02:00
parent e499c3c6e3
commit a16d18d83c
8 changed files with 10 additions and 10 deletions

View File

@ -64,7 +64,7 @@ public:
return true;
}
void ThreadProc() override
void process() override
{
}
};

View File

@ -708,7 +708,7 @@ void PadHandlerBase::get_mapping(const pad_ensemble& binding)
}
}
void PadHandlerBase::ThreadProc()
void PadHandlerBase::process()
{
for (usz i = 0; i < m_bindings.size(); ++i)
{

View File

@ -203,7 +203,7 @@ public:
// Return list of devices for that handler
virtual std::vector<pad_list_entry> list_devices() = 0;
// Callback called during pad_thread::ThreadFunc
virtual void ThreadProc();
virtual void process();
// Binds a Pad to a device
virtual bool bindPadToDevice(std::shared_ptr<Pad> pad, u8 player_id);
virtual void init_config(cfg_pad* cfg) = 0;

View File

@ -98,11 +98,11 @@ bool hid_pad_handler<Device>::Init()
}
template <class Device>
void hid_pad_handler<Device>::ThreadProc()
void hid_pad_handler<Device>::process()
{
update_devices();
PadHandlerBase::ThreadProc();
PadHandlerBase::process();
}
template <class Device>

View File

@ -58,7 +58,7 @@ public:
~hid_pad_handler();
bool Init() override;
void ThreadProc() override;
void process() override;
std::vector<pad_list_entry> list_devices() override;
protected:

View File

@ -889,7 +889,7 @@ bool keyboard_pad_handler::bindPadToDevice(std::shared_ptr<Pad> pad, u8 player_i
return true;
}
void keyboard_pad_handler::ThreadProc()
void keyboard_pad_handler::process()
{
static const double stick_interval = 10.0;
static const double button_interval = 10.0;

View File

@ -86,7 +86,7 @@ public:
std::vector<pad_list_entry> list_devices() override;
void get_next_button_press(const std::string& /*padId*/, const pad_callback& /*callback*/, const pad_fail_callback& /*fail_callback*/, bool /*get_blacklist*/ = false, const std::vector<std::string>& /*buttons*/ = {}) override {}
bool bindPadToDevice(std::shared_ptr<Pad> pad, u8 player_id) override;
void ThreadProc() override;
void process() override;
std::string GetMouseName(const QMouseEvent* event) const;
std::string GetMouseName(u32 button) const;

View File

@ -278,7 +278,7 @@ void pad_thread::operator()()
continue;
}
handler->ThreadProc();
handler->process();
thread_ctrl::wait_for(g_cfg.io.pad_sleep);
}
@ -325,7 +325,7 @@ void pad_thread::operator()()
{
for (auto& handler : handlers)
{
handler.second->ThreadProc();
handler.second->process();
connected_devices += handler.second->connected_devices;
}
}