mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
update Cheat files
This commit is contained in:
parent
9ab8c1e433
commit
cbfd634a4b
217 changed files with 2263 additions and 1880 deletions
|
@ -79,6 +79,9 @@ void IRWidget::mouseMoveEvent(QMouseEvent* event)
|
|||
|
||||
void IRWidget::handleMouseEvent(QMouseEvent* event)
|
||||
{
|
||||
u16 prev_x = m_x;
|
||||
u16 prev_y = m_y;
|
||||
|
||||
if (event->button() == Qt::RightButton)
|
||||
{
|
||||
m_x = std::round(ir_max_x / 2.);
|
||||
|
@ -94,7 +97,18 @@ void IRWidget::handleMouseEvent(QMouseEvent* event)
|
|||
m_y = std::max(0, std::min(static_cast<int>(ir_max_y), new_y));
|
||||
}
|
||||
|
||||
emit ChangedX(m_x);
|
||||
emit ChangedY(m_y);
|
||||
update();
|
||||
bool changed = false;
|
||||
if (prev_x != m_x)
|
||||
{
|
||||
emit ChangedX(m_x);
|
||||
changed = true;
|
||||
}
|
||||
if (prev_y != m_y)
|
||||
{
|
||||
emit ChangedY(m_y);
|
||||
changed = true;
|
||||
}
|
||||
|
||||
if (changed)
|
||||
update();
|
||||
}
|
||||
|
|
|
@ -82,6 +82,9 @@ void StickWidget::mouseMoveEvent(QMouseEvent* event)
|
|||
|
||||
void StickWidget::handleMouseEvent(QMouseEvent* event)
|
||||
{
|
||||
u16 prev_x = m_x;
|
||||
u16 prev_y = m_y;
|
||||
|
||||
if (event->button() == Qt::RightButton)
|
||||
{
|
||||
m_x = std::round(m_max_x / 2.);
|
||||
|
@ -97,7 +100,18 @@ void StickWidget::handleMouseEvent(QMouseEvent* event)
|
|||
m_y = std::max(0, std::min(static_cast<int>(m_max_y), new_y));
|
||||
}
|
||||
|
||||
emit ChangedX(m_x);
|
||||
emit ChangedY(m_y);
|
||||
update();
|
||||
bool changed = false;
|
||||
if (prev_x != m_x)
|
||||
{
|
||||
emit ChangedX(m_x);
|
||||
changed = true;
|
||||
}
|
||||
if (prev_y != m_y)
|
||||
{
|
||||
emit ChangedY(m_y);
|
||||
changed = true;
|
||||
}
|
||||
|
||||
if (changed)
|
||||
update();
|
||||
}
|
||||
|
|
|
@ -353,7 +353,7 @@ WiiTASInputWindow::WiiTASInputWindow(QWidget* parent, int num) : TASInputWindow(
|
|||
}
|
||||
else
|
||||
{
|
||||
IniFile ini;
|
||||
Common::IniFile ini;
|
||||
ini.Load(File::GetUserPath(D_CONFIG_IDX) + "WiimoteNew.ini");
|
||||
const std::string section_name = "Wiimote" + std::to_string(num + 1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue