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 + src/engine/interface.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'src/engine') 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. -- cgit 1.4.1