Mouse Button Mapping

Here you can provide suggestions on how to improve the product, website, etc.

Mouse Button Mapping

Postby evilbananas » 25. Jul 2008, 18:34

It would be nice if all the mouse buttons available on the host worked in the guest. I'm running a Windows XP host with a Linux guest; it would be convenient if my mouse's side buttons were available for programs such as Firefox on the guest.
evilbananas
 
Posts: 2
Joined: 25. Jul 2008, 18:13

Postby Sasquatch » 25. Jul 2008, 20:27

I agree. With the Guest Additions, it would be possible to have a transparent passthrough of the mouse events to the guest. It only needs to be written and tested properly. Perhaps something for 1.7.0+.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Postby kilves76 » 1. Sep 2008, 22:26

I'll agree too to bump this up, surfing on a virtual machine is terrible without being able to use mouse extra buttons. :cry:
kilves76
 
Posts: 32
Joined: 28. Aug 2008, 19:33

Postby Sasquatch » 1. Sep 2008, 22:44

kilves76 wrote:I'll agree too to bump this up, surfing on a virtual machine is terrible without being able to use mouse extra buttons. :cry:

I have a small work around for that. I use mouse gestures. Opera has them build in, but for other applications like IE those are not available. For that, I use StrokeIt. Not the same, but it does let you go back and forward using a smooth move.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Postby kilves76 » 2. Sep 2008, 10:06

This is slightly off topic but funny, I bought a mouse with extra buttons exactly for the reason that I totally dislike mouse gestures :lol: I'll let the idea grow on me..
kilves76
 
Posts: 32
Joined: 28. Aug 2008, 19:33

Re: Mouse Button Mapping

Postby Bondrake » 24. May 2009, 03:42

Just to note: I was searching google for 'mouse buttons virtualbox' after having this same problem, and found this as the top result. As such, I thought I'd be a good net-denizen and let everyone else on the searchernets know the details of the issue and a workaround that doesn't involve resorting to gestures.

VirtualBox mouse emulation emulates a 3-button mouse. Technically it passes 5 buttons to the guest OS, but 4 and 5 are used for scroll. Thus, the buttons you use for forward/back are not passed to the guest OS thanks to a limitation in virtualbox's emulated mouse driver.

Hope: If enough people want more mouse buttons, I'd bet that someone at Sun would be willing to put in the effort required to directly pass through mouse events from higher-order micen through the Virtual Box Guest Additions.

Workaround: If you have a mouse with software in your host OS that allows for per-application profiles, it is possible to setup a profile for virtualbox.exe that will cause your mouse buttons to trigger keyboard events on your Host OS. This means that, say, if you have Firefox running on your guest OS and want to enable forward/back you setup a profile for the mouse buttons you want to use for that in the mouse software of your host OS with the keyboard shortcuts Firefox uses for forward and back (Alt + Right Arrow and Alt + Left Arrow). I suppose if you wanted to be further contrived you could also set it up such that it passes a key combination that isn't bound to anything on your guest OS and then you could use some key-stroke capture software with per-application profiles on the guest OS to have the mouse buttons do different duties for different applications. I'm not aware of any software that does that though (maybe someone with more knowledge on the subject could chime in here?).

My setup is a Windows 7 host with a Logitech G9. The SetPoint mouse software is leagues better than what I remember using years ago and it's exceptionally easy to setup per-application profiles. With the G9 it actually stores the profiles in memory on the mouse and there's no noticeable lag in the profile switch (so the instant I bring up my virtualbox window it has the profile loaded that sets my side keys as Alt+Right and Alt+Left).
Bondrake
 
Posts: 2
Joined: 24. May 2009, 03:24
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Ubuntu 9.04 64-bit


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 3 guests