disabled drag and drop feature if there is no --enable-drag-drop cmd arg

This commit is contained in:
jerry
2013-09-25 12:37:27 +00:00
parent e24afa5670
commit fd0f5e1db2
8 changed files with 36 additions and 7 deletions

View File

@@ -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;
}