Applied patch from Frans Pop regarding changes to the input system and also some sparc specific issues.
Changed paths: