Page 1 of 1

Support side mouse buttons for back and forward navigation

Posted: 05.10.2008, 20:16
by blackbox
Many mice now feature two additional buttons (X buttons), usually on the left side, that perform back/forward commands.
While mainly labeled by manufacturers as "internet" buttons, they are widely supported in many other applications besides web browsers, e.g.: Windows Explorer, Media Player, Photo Gallery / Picture and Fax Viewer, iTunes, Picasa, Media Player Classic.
Also, in Vista these buttons are supported in all native wizards and common file open/save dialogs.

When I bought my first mouse with X buttons (Logitech MX400), I thought that they are redundant and unnecessary, but after some time I found myself using them more and more. Indeed, it's much faster to press the button on the mouse than to reach and click the the tiny toolbar button.

While many mice come with manufacturer's drivers that install all sorts of crap (Logitech SetPoint :evil:, Logitech Desktop Messenger :evil: etc.), XP and Vista have native support for these buttons in their built-in drivers.

All that is needed to add support for back/forward buttons in the application is to process window message WM_XBUTTONUP:

Code: Select all

	switch (msg) {
		switch (GET_XBUTTON_WPARAM(wParam)) {
		case XBUTTON1:
			return TRUE;
		case XBUTTON2:
			return TRUE;
It would be really great if you add support for X buttons in FreeCommander and built-in file viewer!

Posted: 07.10.2008, 21:40
by Marek
I do not have such mouse :). Send me PM with your email address and I send you a test version.

Posted: 13.10.2008, 00:00
by Dreamer
Added in the latest beta version. It's working good with my Logitech mouse. Please test your mouse and report the problems in Bug Reports forum.