From 43d26fa6b6e10a93bc2a81d617ec761e278799c7 Mon Sep 17 00:00:00 2001 From: shockdude Date: Sat, 23 Apr 2022 23:15:43 -0700 Subject: [PATCH] Make Guitar Hero Live Guitar GHTV button bindable Also make emulated interrupt transfer as fast as possible --- rpcs3/Emu/Io/GHLtar.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Io/GHLtar.cpp b/rpcs3/Emu/Io/GHLtar.cpp index 2d52c0cd3f..129715d3b1 100644 --- a/rpcs3/Emu/Io/GHLtar.cpp +++ b/rpcs3/Emu/Io/GHLtar.cpp @@ -52,7 +52,8 @@ void usb_device_ghltar::interrupt_transfer(u32 buf_size, u8* buf, u32 /*endpoint transfer->expected_count = buf_size; transfer->expected_result = HC_CC_NOERR; // Interrupt transfers are slow(6ms, TODO accurate measurement) - transfer->expected_time = get_timestamp() + 6000; + // But make the emulated guitar go as fast as possible for better input behavior + transfer->expected_time = get_timestamp(); memset(buf, 0, buf_size); @@ -186,6 +187,10 @@ void usb_device_ghltar::interrupt_transfer(u32 buf_size, u8* buf, u32 /*endpoint if (button.m_pressed) buf[1] += 0x01; // Hero Power break; + case CELL_PAD_CTRL_L3: + if (button.m_pressed) + buf[1] += 0x04; // GHTV Button + break; default: break; }