shithub: choc

Download patch

ref: ca489967b68f63cb90b6a1088288449a74fd2fd1
parent: b8687eb0dda823e623ff04ae767514206cfaf7f7
author: Turo Lamminen <turol@iki.fi>
date: Thu Sep 8 11:30:52 EDT 2022

setup: Move joystick_physical_buttons extern declaration to joystick.h

--- 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);
--- 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