about summary refs log tree commit diff
path: root/src/engine
diff options
context:
space:
mode:
authorJoel de Vahl <joel@stalverk80.se>2007-08-05 23:00:32 +0000
committerJoel de Vahl <joel@stalverk80.se>2007-08-05 23:00:32 +0000
commit313781b365dcce8dce03a3c26babdcb4637ca2bf (patch)
tree9ba43c34f29818929f067fde1d82f0d0b64eeae8 /src/engine
parent01306887157deabe2c4d5ea0ffd0813fcc874f89 (diff)
downloadzcatch-313781b365dcce8dce03a3c26babdcb4637ca2bf.tar.gz
zcatch-313781b365dcce8dce03a3c26babdcb4637ca2bf.zip
scroll wheel for weapon switch
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/client/client.cpp1
-rw-r--r--src/engine/interface.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp
index 379b7a88..d184bb22 100644
--- a/src/engine/client/client.cpp
+++ b/src/engine/client/client.cpp
@@ -45,6 +45,7 @@ static int keyboard_current = 0;
 static int keyboard_first = 1;
 
 void inp_mouse_relative(int *x, int *y) { input::mouse_position(x, y); }
+int inp_mouse_scroll() { input::mouse_scroll(); }
 int inp_key_pressed(int key) { return keyboard_state[keyboard_current][key]; }
 int inp_key_was_pressed(int key) { return keyboard_state[keyboard_current^1][key]; }
 int inp_key_down(int key) { return inp_key_pressed(key)&&!inp_key_was_pressed(key); }
diff --git a/src/engine/interface.h b/src/engine/interface.h
index 5d3e2fe6..7809d810 100644
--- a/src/engine/interface.h
+++ b/src/engine/interface.h
@@ -350,6 +350,8 @@ bool snd_shutdown();
 */
 void inp_mouse_relative(int *x, int *y);
 
+int inp_mouse_scroll();
+
 /*
 	Function: inp_key_pressed
 		Checks if a key is pressed.