Minor simplification, GtkButton is no longer needed for axis configuration.

This commit is contained in:
evilynux 2007-02-13 07:44:39 +00:00
parent d2fd40bda2
commit fce25b7921
1 changed files with 2 additions and 2 deletions

View File

@ -377,7 +377,7 @@ void ask_joy_key(GtkButton*b, int key)
} }
/* Joystick configuration / Key definition */ /* Joystick configuration / Key definition */
void ask_joy_axis(GtkButton*b, u8 key, u8 opposite_key) void ask_joy_axis(u8 key, u8 opposite_key)
{ {
char text[50]; char text[50];
char current_button[50], opposite_button[50]; char current_button[50], opposite_button[50];
@ -419,7 +419,7 @@ void on_button_kb_key_clicked (GtkButton *b, gpointer user_data)
void on_button_joy_axis_clicked (GtkButton *b, gpointer user_data) void on_button_joy_axis_clicked (GtkButton *b, gpointer user_data)
{ {
int key = dyn_CAST( int, user_data ); int key = dyn_CAST( int, user_data );
ask_joy_axis( b, key, key+1 ); ask_joy_axis( key, key+1 );
} }
/* Bind a joystick button to a keypad key */ /* Bind a joystick button to a keypad key */