From 313781b365dcce8dce03a3c26babdcb4637ca2bf Mon Sep 17 00:00:00 2001 From: Joel de Vahl Date: Sun, 5 Aug 2007 23:00:32 +0000 Subject: scroll wheel for weapon switch --- src/engine/client/client.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/engine/client/client.cpp') 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); } -- cgit 1.4.1