mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
data to clipboard; simplify types
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
|
||||
#include <SDL_events.h>
|
||||
#include <SDL_timer.h>
|
||||
#include <SDL_clipboard.h>
|
||||
|
||||
InputHandler::InputHandler()
|
||||
: enableMouse(settings["input"]["enableMouse"].Bool())
|
||||
@@ -142,6 +143,11 @@ InputMode InputHandler::getCurrentInputMode()
|
||||
return currentInputMode;
|
||||
}
|
||||
|
||||
void InputHandler::copyToClipBoard(std::string text)
|
||||
{
|
||||
SDL_SetClipboardText(text.c_str());
|
||||
}
|
||||
|
||||
std::vector<SDL_Event> InputHandler::acquireEvents()
|
||||
{
|
||||
boost::unique_lock<boost::mutex> lock(eventsMutex);
|
||||
|
||||
Reference in New Issue
Block a user