Platform: Add initial Clipboard support (only text is supported)
This commit is contained in:
25
src/Nazara/Platform/Clipboard.cpp
Normal file
25
src/Nazara/Platform/Clipboard.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
// Copyright (C) 2021 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
|
||||
// This file is part of the "Nazara Engine - Platform module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Platform/Clipboard.hpp>
|
||||
#include <Nazara/Platform/SDL2/InputImpl.hpp>
|
||||
#include <Nazara/Platform/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
ClipboardContentType Clipboard::GetContentType()
|
||||
{
|
||||
return InputImpl::GetClipboardContentType();
|
||||
}
|
||||
|
||||
std::string Clipboard::GetString()
|
||||
{
|
||||
return InputImpl::GetClipboardString();
|
||||
}
|
||||
|
||||
void Clipboard::SetString(const std::string& str)
|
||||
{
|
||||
return InputImpl::SetClipboardString(str);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user