mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Use newer IrrlichtMt
now with SDL2
This commit is contained in:
parent
225aa107f6
commit
699d1bf27c
11 changed files with 20 additions and 26 deletions
|
@ -678,12 +678,8 @@ bool GUIChatConsole::OnEvent(const SEvent& event)
|
|||
if (!was_url_pressed
|
||||
&& event.MouseInput.Event == EMIE_MMOUSE_PRESSED_DOWN) {
|
||||
// Paste primary selection at cursor pos
|
||||
#if IRRLICHT_VERSION_MT_REVISION >= 11
|
||||
const c8 *text = Environment->getOSOperator()
|
||||
->getTextFromPrimarySelection();
|
||||
#else
|
||||
const c8 *text = nullptr;
|
||||
#endif
|
||||
if (text)
|
||||
prompt.input(utf8_to_wide(text));
|
||||
}
|
||||
|
@ -774,9 +770,7 @@ bool GUIChatConsole::weblinkClick(s32 col, s32 row)
|
|||
|
||||
void GUIChatConsole::updatePrimarySelection()
|
||||
{
|
||||
#if IRRLICHT_VERSION_MT_REVISION >= 11
|
||||
std::wstring wselected = m_chat_backend->getPrompt().getSelection();
|
||||
std::string selected = wide_to_utf8(wselected);
|
||||
Environment->getOSOperator()->copyToPrimarySelection(selected.c_str());
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue