Separate media keys from keyboard shortcuts
The media keys were only in the keyboard shortcuts file because their implementation was the same. With Linux support incoming their implementations are not necessarily the same.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
#include "input_sender.h"
|
||||
|
||||
void sendTokensAsInput( [[maybe_unused]] const std::vector<Token> tokens )
|
||||
{
|
||||
// dummy
|
||||
}
|
||||
+1
-21
@@ -1,4 +1,4 @@
|
||||
#include "KeyboardInput.h"
|
||||
#include "keyboard_input.h"
|
||||
#include "src/keyboard_input/input_sender.h"
|
||||
|
||||
namespace keyboardinput
|
||||
@@ -56,24 +56,4 @@ void sendKeyboardCtrlV()
|
||||
sendTokensAsInput( tokens );
|
||||
}
|
||||
|
||||
void sendMediaNextSong()
|
||||
{
|
||||
// noop
|
||||
}
|
||||
|
||||
void sendMediaPreviousSong()
|
||||
{
|
||||
// noop
|
||||
}
|
||||
|
||||
void sendMediaPausePlay()
|
||||
{
|
||||
// noop
|
||||
}
|
||||
|
||||
void sendMediaStopSong()
|
||||
{
|
||||
// noop
|
||||
}
|
||||
|
||||
} // namespace keyboardinput
|
||||
@@ -23,9 +23,5 @@ void sendKeyboardAltTab();
|
||||
void sendKeyboardAltEnter();
|
||||
void sendKeyboardCtrlC();
|
||||
void sendKeyboardCtrlV();
|
||||
void sendMediaNextSong();
|
||||
void sendMediaPreviousSong();
|
||||
void sendMediaPausePlay();
|
||||
void sendMediaStopSong();
|
||||
|
||||
} // namespace keyboardinput
|
||||
@@ -0,0 +1,26 @@
|
||||
#include "media_keys.h"
|
||||
#include "src/keyboard_input/input_sender.h"
|
||||
|
||||
namespace keyboardinput
|
||||
{
|
||||
void sendMediaNextSong()
|
||||
{
|
||||
// noop
|
||||
}
|
||||
|
||||
void sendMediaPreviousSong()
|
||||
{
|
||||
// noop
|
||||
}
|
||||
|
||||
void sendMediaPausePlay()
|
||||
{
|
||||
// noop
|
||||
}
|
||||
|
||||
void sendMediaStopSong()
|
||||
{
|
||||
// noop
|
||||
}
|
||||
|
||||
} // namespace keyboardinput
|
||||
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <QString>
|
||||
|
||||
namespace keyboardinput
|
||||
{
|
||||
/*!
|
||||
Represents the state of a keyboard button press. Can be either Up or Down.
|
||||
|
||||
Implemented because neither Qt nor Windows.h included a sensible key state enum.
|
||||
*/
|
||||
void sendMediaNextSong();
|
||||
void sendMediaPreviousSong();
|
||||
void sendMediaPausePlay();
|
||||
void sendMediaStopSong();
|
||||
|
||||
} // namespace keyboardinput
|
||||
@@ -5,7 +5,8 @@
|
||||
#include <QTime>
|
||||
#include <openvr.h>
|
||||
#include <memory>
|
||||
#include "keyboardinput/KeyboardInput.h"
|
||||
#include "src/keyboard_input/keyboard_input.h"
|
||||
#include "src/media_keys/media_keys.h"
|
||||
|
||||
class QQuickWindow;
|
||||
// application namespace
|
||||
|
||||
Reference in New Issue
Block a user