mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 15:48:51 +00:00
NetPlayChatUI: Add activate chat hotkey
This commit is contained in:
parent
eaa1874875
commit
f7897778ff
8 changed files with 33 additions and 2 deletions
|
@ -106,6 +106,7 @@
|
|||
|
||||
#include "UICommon/UICommon.h"
|
||||
|
||||
#include "VideoCommon/NetPlayChatUI.h"
|
||||
#include "VideoCommon/VideoConfig.h"
|
||||
|
||||
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
||||
|
@ -482,6 +483,7 @@ void MainWindow::ConnectHotkeys()
|
|||
connect(m_hotkey_scheduler, &HotkeyScheduler::EjectDisc, this, &MainWindow::EjectDisc);
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::ExitHotkey, this, &MainWindow::close);
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::TogglePauseHotkey, this, &MainWindow::TogglePause);
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::ActivateChat, this, &MainWindow::OnActivateChat);
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::RefreshGameListHotkey, this,
|
||||
&MainWindow::RefreshGameList);
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::StopHotkey, this, &MainWindow::RequestStop);
|
||||
|
@ -1587,6 +1589,12 @@ void MainWindow::OnExportRecording()
|
|||
Core::SetState(Core::State::Running);
|
||||
}
|
||||
|
||||
void MainWindow::OnActivateChat()
|
||||
{
|
||||
if (g_netplay_chat_ui)
|
||||
g_netplay_chat_ui->Activate();
|
||||
}
|
||||
|
||||
void MainWindow::ShowTASInput()
|
||||
{
|
||||
for (int i = 0; i < num_gc_controllers; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue