summaryrefslogtreecommitdiff
path: root/UserInput.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2012-03-10 18:48:13 +0100
committerPetr Mrázek2012-03-10 18:48:13 +0100
commitf05386bae01d1840bdc889f30253ed50ee892860 (patch)
treeb5c0745c84c4d2a69c0e93aa9db8148eeb2eb740 /UserInput.cpp
parent96bbfa604d1835df993602cbf46ca6bb0a28e6bd (diff)
downloadstonesense-f05386bae01d1840bdc889f30253ed50ee892860.tar.gz
stonesense-f05386bae01d1840bdc889f30253ed50ee892860.tar.bz2
stonesense-f05386bae01d1840bdc889f30253ed50ee892860.tar.xz
Plugin API changes
No more Core propagation!
Diffstat (limited to 'UserInput.cpp')
-rw-r--r--UserInput.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/UserInput.cpp b/UserInput.cpp
index 4f7d190..45a83c6 100644
--- a/UserInput.cpp
+++ b/UserInput.cpp
@@ -198,7 +198,7 @@ void doKeys(){
}
}
-void doKeys(int Key, DFHack::Core * c)
+void doKeys(int Key)
{
al_get_keyboard_state(&keyboard);
if(Key == ALLEGRO_KEY_ENTER){
@@ -210,7 +210,7 @@ void doKeys(int Key, DFHack::Core * c)
timeToReloadSegment = true;
}
if(Key == ALLEGRO_KEY_D){
- paintboard(c);
+ paintboard();
}
if(Key == ALLEGRO_KEY_G){
//contentLoader.reload_configs();
@@ -291,11 +291,11 @@ void doKeys(int Key, DFHack::Core * c)
else if (al_key_down(&keyboard,ALLEGRO_KEY_ALT) || al_key_down(&keyboard,ALLEGRO_KEY_ALTGR))
dumpSegment();
else
- saveScreenshot(c);
+ saveScreenshot();
}
if(Key == ALLEGRO_KEY_PAD_PLUS){
config.automatic_reload_time += config.automatic_reload_step;
- paintboard(c);
+ paintboard();
initAutoReload();
}
if(Key == ALLEGRO_KEY_PAD_MINUS && config.automatic_reload_time){
@@ -309,7 +309,7 @@ void doKeys(int Key, DFHack::Core * c)
}
else
initAutoReload();
- paintboard(c);
+ paintboard();
}
if(Key == ALLEGRO_KEY_F9)
{
@@ -321,22 +321,22 @@ void doKeys(int Key, DFHack::Core * c)
if(Key == ALLEGRO_KEY_PAD_8){
config.follow_DFcursor = false;
debugCursor.y--;
- paintboard(c);
+ paintboard();
}
if(Key == ALLEGRO_KEY_PAD_2){
config.follow_DFcursor = false;
debugCursor.y++;
- paintboard(c);
+ paintboard();
}
if(Key == ALLEGRO_KEY_PAD_4){
config.follow_DFcursor = false;
debugCursor.x--;
- paintboard(c);
+ paintboard();
}
if(Key == ALLEGRO_KEY_PAD_6){
config.follow_DFcursor = false;
debugCursor.x++;
- paintboard(c);
+ paintboard();
}
if(Key == ALLEGRO_KEY_F10)