summaryrefslogtreecommitdiff
path: root/UserInput.cpp
diff options
context:
space:
mode:
authorKris Parker2009-11-21 03:13:18 +0000
committerKris Parker2009-11-21 03:13:18 +0000
commit9ffb038e71bc699020147d147289121a8a238b4c (patch)
tree40a6c499f195ce4de8c2d6f43699c6728d78958e /UserInput.cpp
parent3091c46b808662e2145861b2299c3beb62c98bc2 (diff)
downloadstonesense-9ffb038e71bc699020147d147289121a8a238b4c.tar.gz
stonesense-9ffb038e71bc699020147d147289121a8a238b4c.tar.bz2
stonesense-9ffb038e71bc699020147d147289121a8a238b4c.tar.xz
autoreload config option for those who just cant seem to find the numberpad
Diffstat (limited to 'UserInput.cpp')
-rw-r--r--UserInput.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/UserInput.cpp b/UserInput.cpp
index f3ea24a..021d7f9 100644
--- a/UserInput.cpp
+++ b/UserInput.cpp
@@ -18,6 +18,12 @@ void automaticReloadProc(){
timeToReloadSegment = true;
}
+void initAutoReload()
+{
+ if( config.automatic_reload_time > 0 )
+ install_int( automaticReloadProc, config.automatic_reload_time );
+}
+
void changeRelativeToRotation( int &inputx, int &inputy, int stepx, int stepy ){
switch(DisplayedRotation){
case 0: