fix compilation warnings and errors
add a new function for joystick binding to open the menu