mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
Merge pull request #1390 from RachelBryk/turbo
Alternate inputs once per frame rather than once per input for turbo.
This commit is contained in:
commit
bf97e7f9c1
@ -23,6 +23,7 @@
|
|||||||
#include <wx/windowid.h>
|
#include <wx/windowid.h>
|
||||||
|
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
|
#include "Core/Movie.h"
|
||||||
#include "Core/HW/WiimoteEmu/MatrixMath.h"
|
#include "Core/HW/WiimoteEmu/MatrixMath.h"
|
||||||
#include "DolphinWX/TASInputDlg.h"
|
#include "DolphinWX/TASInputDlg.h"
|
||||||
#include "InputCommon/GCPadStatus.h"
|
#include "InputCommon/GCPadStatus.h"
|
||||||
@ -745,11 +746,17 @@ void TASInputDlg::SetTurbo(wxMouseEvent& event)
|
|||||||
|
|
||||||
void TASInputDlg::ButtonTurbo()
|
void TASInputDlg::ButtonTurbo()
|
||||||
{
|
{
|
||||||
|
static u64 frame = Movie::g_currentFrame;
|
||||||
|
|
||||||
|
if (frame != Movie::g_currentFrame)
|
||||||
|
{
|
||||||
|
frame = Movie::g_currentFrame;
|
||||||
for (unsigned int i = 0; i < 14; ++i)
|
for (unsigned int i = 0; i < 14; ++i)
|
||||||
{
|
{
|
||||||
if (m_buttons[i] != nullptr && m_buttons[i]->turbo_on)
|
if (m_buttons[i] != nullptr && m_buttons[i]->turbo_on)
|
||||||
m_buttons[i]->checkbox->SetValue(!m_buttons[i]->checkbox->GetValue());
|
m_buttons[i]->checkbox->SetValue(!m_buttons[i]->checkbox->GetValue());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxBitmap TASInputDlg::CreateStickBitmap(int x, int y)
|
wxBitmap TASInputDlg::CreateStickBitmap(int x, int y)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user