mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +00:00
Remove unused variable
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
|
|
||||||
SdlInputHandler::SdlInputHandler(StreamingPreferences& prefs, NvComputer* computer, int streamWidth, int streamHeight)
|
SdlInputHandler::SdlInputHandler(StreamingPreferences& prefs, int streamWidth, int streamHeight)
|
||||||
: m_MultiController(prefs.multiController),
|
: m_MultiController(prefs.multiController),
|
||||||
m_GamepadMouse(prefs.gamepadMouse),
|
m_GamepadMouse(prefs.gamepadMouse),
|
||||||
m_SwapMouseButtons(prefs.swapMouseButtons),
|
m_SwapMouseButtons(prefs.swapMouseButtons),
|
||||||
|
|||||||
@@ -38,8 +38,7 @@ struct GamepadState {
|
|||||||
class SdlInputHandler
|
class SdlInputHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit SdlInputHandler(StreamingPreferences& prefs, NvComputer* computer,
|
explicit SdlInputHandler(StreamingPreferences& prefs, int streamWidth, int streamHeight);
|
||||||
int streamWidth, int streamHeight);
|
|
||||||
|
|
||||||
~SdlInputHandler();
|
~SdlInputHandler();
|
||||||
|
|
||||||
|
|||||||
@@ -1348,9 +1348,7 @@ void Session::execInternal()
|
|||||||
|
|
||||||
// Initialize the gamepad code with our preferences
|
// Initialize the gamepad code with our preferences
|
||||||
// NB: m_InputHandler must be initialize before starting the connection.
|
// NB: m_InputHandler must be initialize before starting the connection.
|
||||||
m_InputHandler = new SdlInputHandler(*m_Preferences, m_Computer,
|
m_InputHandler = new SdlInputHandler(*m_Preferences, m_StreamConfig.width, m_StreamConfig.height);
|
||||||
m_StreamConfig.width,
|
|
||||||
m_StreamConfig.height);
|
|
||||||
|
|
||||||
AsyncConnectionStartThread asyncConnThread(this);
|
AsyncConnectionStartThread asyncConnThread(this);
|
||||||
if (!m_ThreadedExec) {
|
if (!m_ThreadedExec) {
|
||||||
|
|||||||
Reference in New Issue
Block a user