mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 04:02:42 +01:00
Input: rename misleading ThreadProc to process
This commit is contained in:
parent
e499c3c6e3
commit
a16d18d83c
@ -64,7 +64,7 @@ public:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThreadProc() override
|
void process() override
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -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)
|
for (usz i = 0; i < m_bindings.size(); ++i)
|
||||||
{
|
{
|
||||||
|
@ -203,7 +203,7 @@ public:
|
|||||||
// Return list of devices for that handler
|
// Return list of devices for that handler
|
||||||
virtual std::vector<pad_list_entry> list_devices() = 0;
|
virtual std::vector<pad_list_entry> list_devices() = 0;
|
||||||
// Callback called during pad_thread::ThreadFunc
|
// Callback called during pad_thread::ThreadFunc
|
||||||
virtual void ThreadProc();
|
virtual void process();
|
||||||
// Binds a Pad to a device
|
// Binds a Pad to a device
|
||||||
virtual bool bindPadToDevice(std::shared_ptr<Pad> pad, u8 player_id);
|
virtual bool bindPadToDevice(std::shared_ptr<Pad> pad, u8 player_id);
|
||||||
virtual void init_config(cfg_pad* cfg) = 0;
|
virtual void init_config(cfg_pad* cfg) = 0;
|
||||||
|
@ -98,11 +98,11 @@ bool hid_pad_handler<Device>::Init()
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class Device>
|
template <class Device>
|
||||||
void hid_pad_handler<Device>::ThreadProc()
|
void hid_pad_handler<Device>::process()
|
||||||
{
|
{
|
||||||
update_devices();
|
update_devices();
|
||||||
|
|
||||||
PadHandlerBase::ThreadProc();
|
PadHandlerBase::process();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class Device>
|
template <class Device>
|
||||||
|
@ -58,7 +58,7 @@ public:
|
|||||||
~hid_pad_handler();
|
~hid_pad_handler();
|
||||||
|
|
||||||
bool Init() override;
|
bool Init() override;
|
||||||
void ThreadProc() override;
|
void process() override;
|
||||||
std::vector<pad_list_entry> list_devices() override;
|
std::vector<pad_list_entry> list_devices() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -889,7 +889,7 @@ bool keyboard_pad_handler::bindPadToDevice(std::shared_ptr<Pad> pad, u8 player_i
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void keyboard_pad_handler::ThreadProc()
|
void keyboard_pad_handler::process()
|
||||||
{
|
{
|
||||||
static const double stick_interval = 10.0;
|
static const double stick_interval = 10.0;
|
||||||
static const double button_interval = 10.0;
|
static const double button_interval = 10.0;
|
||||||
|
@ -86,7 +86,7 @@ public:
|
|||||||
std::vector<pad_list_entry> list_devices() override;
|
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 {}
|
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;
|
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(const QMouseEvent* event) const;
|
||||||
std::string GetMouseName(u32 button) const;
|
std::string GetMouseName(u32 button) const;
|
||||||
|
@ -278,7 +278,7 @@ void pad_thread::operator()()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
handler->ThreadProc();
|
handler->process();
|
||||||
|
|
||||||
thread_ctrl::wait_for(g_cfg.io.pad_sleep);
|
thread_ctrl::wait_for(g_cfg.io.pad_sleep);
|
||||||
}
|
}
|
||||||
@ -325,7 +325,7 @@ void pad_thread::operator()()
|
|||||||
{
|
{
|
||||||
for (auto& handler : handlers)
|
for (auto& handler : handlers)
|
||||||
{
|
{
|
||||||
handler.second->ThreadProc();
|
handler.second->process();
|
||||||
connected_devices += handler.second->connected_devices;
|
connected_devices += handler.second->connected_devices;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user