ios keyboard stuff
This commit is contained in:
1 parent
e9de663388
commit
9a27aacbab
10 files changed
+128
-10
No files matched your search
@@ -208,6 +208,8 @@ public:
|
||||
virtual void OnTapDown(vec2 pos);
|
||||
|
||||
void SetText(const std::string& newText);
|
||||
void OnSetAllText(std::string newText); //For iOS only
|
||||
std::string GetText();
|
||||
|
||||
static TEdit* CreateEdit(vec2 posFrom, vec2 posTo);
|
||||
static TEdit* CreateEditWithFiller(vec2 posFrom, vec2 posTo, boost::function<void(TEdit*)> fillerFunc);
|
||||
|
||||
@@ -142,6 +142,7 @@ protected:
|
||||
public:
|
||||
|
||||
boost::signal<void(int)> KeyPressedSignal;
|
||||
boost::signal<void(std::string)> SetTextSignal;
|
||||
//boost::signal<void()> PostUpdateSignal;
|
||||
|
||||
TGUIManager();
|
||||
@@ -170,7 +171,7 @@ public:
|
||||
|
||||
void OnMove(vec2 shift);
|
||||
|
||||
void ShowKeyboard();
|
||||
void ShowKeyboard(const std::string text = "");
|
||||
void HideKeyboard();
|
||||
|
||||
|
||||
|
||||
@@ -21,6 +21,9 @@ std::string IosGetFileReadPath(const std::string& filename);
|
||||
std::string IosGetFilePathUserData(const std::string& filename);
|
||||
|
||||
void IosSwitchToScreen();
|
||||
|
||||
void ShowKeyboard(std::string text);
|
||||
|
||||
void HideKeyboard();
|
||||
|
||||
} //namespace SE
|
||||
@@ -9,8 +9,11 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <GLKit/GLKit.h>
|
||||
|
||||
@interface ViewControllerTemplate : GLKViewController
|
||||
@interface ViewControllerTemplate : GLKViewController<UITextFieldDelegate>
|
||||
{
|
||||
}
|
||||
|
||||
@property (nonatomic, readonly) UITextField* hiddenTextField; //for keyboard
|
||||
|
||||
- (void) appInitCaller;
|
||||
|
||||
|
||||
Reference in new issue
Block a user