foxygit / doom Log in
commit ca489967b68f63cb90b6a1088288449a74fd2fd1
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Thu Sep 8 15:30:52 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Fri Sep 30 13:01:53 2022 +0300

    setup: Move joystick_physical_buttons extern declaration to joystick.h
---
 src/setup/joystick.h      | 2 ++
 src/setup/txt_joybinput.c | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/setup/joystick.h b/src/setup/joystick.h
index 36671481..57d4664b 100644
--- a/src/setup/joystick.h
+++ b/src/setup/joystick.h
@@ -20,6 +20,8 @@


 extern int joystick_index;
+extern int joystick_physical_buttons[NUM_VIRTUAL_BUTTONS];
+

 void ConfigJoystick(void *widget, void *user_data);
 void BindJoystickVariables(void);
diff --git a/src/setup/txt_joybinput.c b/src/setup/txt_joybinput.c
index 967118d0..9c248ef6 100644
--- a/src/setup/txt_joybinput.c
+++ b/src/setup/txt_joybinput.c
@@ -35,7 +35,6 @@

 #define JOYSTICK_INPUT_WIDTH 10

-extern int joystick_physical_buttons[NUM_VIRTUAL_BUTTONS];

 // Joystick button variables.
 // The ordering of this array is important. We will always try to map