mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 20:22:30 +01:00
uDraw emulation [2]
This commit is contained in:
parent
8d340eecc1
commit
21445fa01a
@ -396,6 +396,7 @@ target_link_libraries(rpcs3_emu
|
||||
target_sources(rpcs3_emu PRIVATE
|
||||
Io/Buzz.cpp
|
||||
Io/camera_config.cpp
|
||||
Io/GameTablet.cpp
|
||||
Io/GHLtar.cpp
|
||||
Io/Infinity.cpp
|
||||
Io/interception.cpp
|
||||
|
@ -149,6 +149,7 @@ void usb_device_gametablet::interrupt_transfer(u32 buf_size, u8* buf, u32 /*endp
|
||||
return;
|
||||
}
|
||||
|
||||
{
|
||||
std::lock_guard lock(pad::g_pad_mutex);
|
||||
const auto gamepad_handler = pad::get_current_handler();
|
||||
const auto& pads = gamepad_handler->GetPads();
|
||||
@ -156,7 +157,7 @@ void usb_device_gametablet::interrupt_transfer(u32 buf_size, u8* buf, u32 /*endp
|
||||
bool up = false, right = false, down = false, left = false;
|
||||
|
||||
const int pad_index = 1; // Player2
|
||||
const auto& pad = pads[pad_index];
|
||||
const auto& pad = ::at32(pads, pad_index);
|
||||
if (pad->m_port_status & CELL_PAD_STATUS_CONNECTED)
|
||||
{
|
||||
for (Button& button : pad->m_buttons)
|
||||
@ -236,7 +237,7 @@ void usb_device_gametablet::interrupt_transfer(u32 buf_size, u8* buf, u32 /*endp
|
||||
buf[0x02] = 0x06;
|
||||
else if (up && left)
|
||||
buf[0x02] = 0x07;
|
||||
|
||||
}
|
||||
|
||||
auto& mouse_handler = g_fxo->get<MouseHandlerBase>();
|
||||
std::lock_guard mouse_lock(mouse_handler.mutex);
|
||||
|
Loading…
Reference in New Issue
Block a user