mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
implement CELL_PAD_INFO_INTERCEPTED
This commit is contained in:
parent
8ad14c4ada
commit
6f7b25de90
13 changed files with 250 additions and 153 deletions
|
|
@ -25,6 +25,7 @@ public:
|
|||
void Init();
|
||||
void Reset();
|
||||
void SetEnabled(bool enabled);
|
||||
void SetIntercepted(bool intercepted);
|
||||
|
||||
protected:
|
||||
void ThreadFunc();
|
||||
|
|
@ -36,7 +37,7 @@ protected:
|
|||
void *curthread;
|
||||
void *curwindow;
|
||||
|
||||
PadInfo m_info;
|
||||
PadInfo m_info{ 0, 0 };
|
||||
std::vector<std::shared_ptr<Pad>> m_pads;
|
||||
|
||||
atomic_t<bool> active{ false };
|
||||
|
|
@ -54,4 +55,11 @@ namespace pad
|
|||
{
|
||||
return verify(HERE, g_current.load());
|
||||
};
|
||||
|
||||
static inline void SetIntercepted(bool intercepted)
|
||||
{
|
||||
std::lock_guard lock(g_pad_mutex);
|
||||
const auto handler = get_current_handler();
|
||||
handler->SetIntercepted(intercepted);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue