about summary refs log tree commit diff
path: root/src/engine
diff options
context:
space:
mode:
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.