Platform: Add initial Clipboard support (only text is supported)
This commit is contained in:
@@ -8,15 +8,18 @@
|
||||
#define NAZARA_PLATFORM_SDL2_INPUTIMPL_HPP
|
||||
|
||||
#include <Nazara/Math/Vector2.hpp>
|
||||
#include <Nazara/Platform/Enums.hpp>
|
||||
#include <Nazara/Platform/Keyboard.hpp>
|
||||
#include <Nazara/Platform/Mouse.hpp>
|
||||
#include <string>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
class EventImpl
|
||||
class InputImpl
|
||||
{
|
||||
public:
|
||||
static ClipboardContentType GetClipboardContentType();
|
||||
static std::string GetClipboardString();
|
||||
static std::string GetKeyName(Keyboard::Scancode scancode);
|
||||
static std::string GetKeyName(Keyboard::VKey key);
|
||||
static Vector2i GetMousePosition();
|
||||
@@ -24,6 +27,7 @@ namespace Nz
|
||||
static bool IsKeyPressed(Keyboard::Scancode key);
|
||||
static bool IsKeyPressed(Keyboard::VKey key);
|
||||
static bool IsMouseButtonPressed(Mouse::Button button);
|
||||
static void SetClipboardString(const std::string& str);
|
||||
static bool SetRelativeMouseMode(bool relativeMouseMode);
|
||||
static void SetMousePosition(int x, int y);
|
||||
static void SetMousePosition(int x, int y, const Window& relativeTo);
|
||||
|
||||
Reference in New Issue
Block a user