Added Over and Out options on text buttons

This commit is contained in:
andreja6
2018-04-13 14:14:35 -07:00
parent 21684a6ea3
commit 7d623bb99d
3 changed files with 32 additions and 1 deletions

View File

@@ -235,6 +235,11 @@ void Demo::onSimulation(RealTime rdt, SimTime sdt, SimTime idt) {
}
void readMouseGUIInput()
{
}
void Demo::onUserInput(UserInput* ui) {
if (ui->keyPressed(SDLK_ESCAPE)) {
// Even when we aren't in debug mode, quit on escape.
@@ -299,10 +304,12 @@ void Demo::onUserInput(UserInput* ui) {
message = "FPS has been set to " + Convert(FPSVal[index]);
setDesiredFrameRate(FPSVal[index]);
}
readMouseGUIInput();
// Add other key handling here
}
std::string ExePath() {
char buffer[MAX_PATH];
GetModuleFileName( NULL, buffer, MAX_PATH );