change MAX_BUTTONS to JOY_MAX_BUTTONS
Fix sdl joystick axis problem, all arch use global variable joy_num_axes
patch from Steven Mueller for using more than 4 joystick devices in linux (d1x r1.3, r1.3, r1.3)
formatting
Moved input stuff to arch subdirs, as in d1x.