Keyboard support prep

This commit is contained in:
Henrik Rydgard 2012-04-16 23:30:13 +02:00
parent dccb7bafdd
commit 45846e4c95
5 changed files with 17 additions and 0 deletions

View file

@ -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";

View file

@ -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);

View file

@ -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
}

View file

@ -138,6 +138,10 @@
<ClInclude Include="ui\ui.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="android\app-android.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="audio\mixer.cpp" />
<ClCompile Include="audio\wav_read.cpp" />
<ClCompile Include="base\colorutil.cpp" />

View file

@ -275,6 +275,9 @@
<ClCompile Include="file\dialog.cpp">
<Filter>file</Filter>
</ClCompile>
<ClCompile Include="android\app-android.cpp">
<Filter>base</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Filter Include="gfx">