Mouse button 5 added, mouse patches ported to C