projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added enabling debug mode on Android when compiled with 'DEBUG' defined
[rocksndiamonds.git]
/
src
/
events.c
diff --git
a/src/events.c
b/src/events.c
index 5b1e5771c671ca48ae568bdd221dd8100799966f..d56edaf9c38596a3c9933c15bbd26de96965c703 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-1441,6
+1441,11
@@
static void HandleKeysSpecial(Key key)
{
SaveNativeLevel(&level);
}
{
SaveNativeLevel(&level);
}
+ else if (is_string_suffix(cheat_input, ":frames-per-second") ||
+ is_string_suffix(cheat_input, ":fps"))
+ {
+ global.show_frames_per_second = !global.show_frames_per_second;
+ }
}
else if (game_status == GAME_MODE_PLAYING)
{
}
else if (game_status == GAME_MODE_PLAYING)
{
@@
-1470,7
+1475,7
@@
void HandleKeysDebug(Key key)
if (game_status == GAME_MODE_PLAYING || !setup.debug.frame_delay_game_only)
{
if (game_status == GAME_MODE_PLAYING || !setup.debug.frame_delay_game_only)
{
- boolean mod_key_pressed = (
GetKeyModState(
) != KMOD_None);
+ boolean mod_key_pressed = (
(GetKeyModState() & KMOD_Valid
) != KMOD_None);
for (i = 0; i < NUM_DEBUG_FRAME_DELAY_KEYS; i++)
{
for (i = 0; i < NUM_DEBUG_FRAME_DELAY_KEYS; i++)
{