mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
27 lines
771 B
C++
27 lines
771 B
C++
#pragma once
|
|
|
|
#include "V8Tree/Instance.h"
|
|
|
|
#include <atomic>
|
|
|
|
namespace RBX
|
|
{
|
|
class DataModel;
|
|
|
|
enum XboxKeyBoardType;
|
|
}
|
|
|
|
|
|
class KeyboardProvider
|
|
{
|
|
public:
|
|
void registerTextBoxListener(RBX::DataModel* dm);
|
|
void showKeyBoard(shared_ptr<RBX::Instance> instance);
|
|
void showKeyBoardLua(std::string& title, std::string& description, std::string& defaultText, RBX::XboxKeyBoardType keyboardType, RBX::DataModel* dm);
|
|
private:
|
|
void showKeyBoard(std::string& title, std::string& description, const std::string& defaultText, RBX::XboxKeyBoardType keyboardType, std::function<void(Platform::String^)>& successLambda, std::function<void(void)>& cancelLambda);
|
|
|
|
rbx::signals::scoped_connection showKeyboardSignal;
|
|
|
|
static volatile long keyboardOn;
|
|
}; |