[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] [pingus] push by address@hidden - Added keyboard shortcuts
From: |
pingus |
Subject: |
[Pingus-CVS] [pingus] push by address@hidden - Added keyboard shortcuts to adjust gamespeed on 2011-10-23 00:00 GMT |
Date: |
Sun, 23 Oct 2011 00:04:29 +0000 |
Revision: a96a48dfe18c
Author: Ingo Ruhnke <address@hidden>
Date: Sat Oct 22 16:59:53 2011
Log: Added keyboard shortcuts to adjust gamespeed
http://code.google.com/p/pingus/source/detail?r=a96a48dfe18c
Modified:
/src/pingus/global_event.cpp
=======================================
--- /src/pingus/global_event.cpp Tue Oct 11 07:00:51 2011
+++ /src/pingus/global_event.cpp Sat Oct 22 16:59:53 2011
@@ -122,6 +122,20 @@
}
break;
+ case SDLK_KP_PLUS:
+ globals::game_speed -= 5;
+ if (globals::game_speed < 5)
+ globals::game_speed = 5;
+ break;
+
+ case SDLK_KP_MINUS:
+ globals::game_speed += 5;
+ break;
+
+ case SDLK_KP_ENTER:
+ globals::game_speed = 20;
+ break;
+
default:
// console << "GlobalEvent: Unknown key pressed: " << key.id;
break;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] [pingus] push by address@hidden - Added keyboard shortcuts to adjust gamespeed on 2011-10-23 00:00 GMT,
pingus <=