Pad: Use baud rate for transfer delay

This commit is contained in:
Connor McLaughlin
2019-10-27 01:52:18 +10:00
parent 4283fa7f74
commit e99f0a4acf
3 changed files with 9 additions and 9 deletions

View File

@ -34,7 +34,6 @@ public:
private:
static constexpr u32 NUM_SLOTS = 2;
static constexpr u32 TRANSFER_TICKS = 750;
enum class State : u32
{
@ -94,6 +93,8 @@ private:
return !m_TX_FIFO.IsEmpty() && !m_RX_FIFO.IsFull() && m_JOY_CTRL.SELECT && m_JOY_CTRL.TXEN;
}
TickCount GetTransferTicks() const { return static_cast<TickCount>(ZeroExtend32(m_JOY_BAUD) * 8); }
void SoftReset();
void UpdateJoyStat();
void BeginTransfer();