mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-08 04:46:26 +08:00
disabled drag and drop feature if there is no --enable-drag-drop cmd arg
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
*/
|
||||
|
||||
#include "CPlatformScreen.h"
|
||||
#include "CApp.h"
|
||||
#include "CArgsBase.h"
|
||||
|
||||
CPlatformScreen::CPlatformScreen(IEventQueue* events) :
|
||||
IPlatformScreen(events),
|
||||
@@ -110,3 +112,12 @@ CPlatformScreen::pollPressedKeys(KeyButtonSet& pressedKeys) const
|
||||
{
|
||||
getKeyState()->pollPressedKeys(pressedKeys);
|
||||
}
|
||||
|
||||
bool
|
||||
CPlatformScreen::getDraggingStarted()
|
||||
{
|
||||
if (CApp::instance().argsBase().m_enableDragDrop) {
|
||||
return m_draggingStarted;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user