From 45846e4c95da5082e88db1a6371eb73324aad604 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Mon, 16 Apr 2012 23:30:13 +0200 Subject: [PATCH] Keyboard support prep --- android/app-android.cpp | 5 +++++ base/NativeApp.h | 1 + base/PCMain.cpp | 4 ++++ native.vcxproj | 4 ++++ native.vcxproj.filters | 3 +++ 5 files changed, 17 insertions(+) diff --git a/android/app-android.cpp b/android/app-android.cpp index ce31495304..b6c4257c02 100644 --- a/android/app-android.cpp +++ b/android/app-android.cpp @@ -40,6 +40,11 @@ void ShowAd(int x, int y, bool center_x) { ELOG("TODO! ShowAd!"); } +void ShowKeyboard() { + frameCommand = "showkeyboard"; + frameCommandParam = ""; +} + void Vibrate(int length_ms) { frameCommand = "vibrate"; frameCommandParam = "100"; diff --git a/base/NativeApp.h b/base/NativeApp.h index d19eee64bb..b66667302e 100644 --- a/base/NativeApp.h +++ b/base/NativeApp.h @@ -55,6 +55,7 @@ void NativeShutdown(); // These APIs must be implemented by every port (for example app-android.cpp, PCMain.cpp). // You are free to call these. void SystemToast(const char *text); +void ShowKeyboard(); void ShowAd(int x, int y, bool center_x); void Vibrate(int length_ms); void LaunchBrowser(const char *url); diff --git a/base/PCMain.cpp b/base/PCMain.cpp index 3517a8c90c..71ce4bc511 100644 --- a/base/PCMain.cpp +++ b/base/PCMain.cpp @@ -34,6 +34,10 @@ void ShowAd(int x, int y, bool center_x) { // Ignore ads on PC } +void ShowKeyboard() { + // Irrelevant on PC +} + void Vibrate(int length_ms) { // Ignore on PC } diff --git a/native.vcxproj b/native.vcxproj index 39ef385443..4420e3028b 100644 --- a/native.vcxproj +++ b/native.vcxproj @@ -138,6 +138,10 @@ + + true + true + diff --git a/native.vcxproj.filters b/native.vcxproj.filters index fa24d4ac78..99c577b707 100644 --- a/native.vcxproj.filters +++ b/native.vcxproj.filters @@ -275,6 +275,9 @@ file + + base +