Does OR recognize mouse button switching?
#1
Posted 29 October 2014 - 09:06 AM
#2
Posted 29 October 2014 - 09:47 AM
#3
Posted 30 October 2014 - 01:15 PM
[DllImport("user32.dll")]
public static extern Int32 SwapMouseButton(Int32 bSwap);
Since the above is to be used in a class, I created a class called MouseSwap(). Under the options form, I created the IsLeftHandedMouse option under the experimental tab and created a procedure to call the above process. With my preliminary test, the mouse buttons are swapped, but since the call is made at the driver level, the button change is reflected outside OR as well until the IsLeftHandedMouse option is unchecked. If you alt tab out of the program to do something, the buttons will be swapped. The best option in this case is to make sure the mouse buttons are set back to default when exiting OR.
Edward K.
#4
Posted 31 October 2014 - 12:49 PM
By the way there is an internal incoherence in OR, as the OR menu honours mouse left hand setup.
#5
Posted 31 October 2014 - 02:58 PM
I believe there is also a way to query the windows driver setting about left-handedness, and use that info as the base of the reversed handling.
Carlo, the menu honours it because that is handled by winforms, unlike the game window.
#6
Posted 31 October 2014 - 03:51 PM
#7
Posted 05 November 2014 - 01:26 PM
I was thinking about following this method at first, but initially I doubt it will work since XNA follows the mouse click via MouseState.LeftButton which would be tied by driver/hardware to the left button. Researching this process only led to the original method that I posted.
Edward K.
gpz, on 31 October 2014 - 02:58 PM, said:
I believe there is also a way to query the windows driver setting about left-handedness, and use that info as the base of the reversed handling.
Carlo, the menu honours it because that is handled by winforms, unlike the game window.
#8
Posted 05 November 2014 - 01:40 PM
Indeed there are two queries in Viewer.cs for MouseState.LeftButton at uncouple and throw-switch commands, but I think this is incorrect here, and needs to be modified to query the UserInput.IsMouseLeftButtonPressed() instead.
#9
Posted 22 April 2024 - 11:42 PM
atsf37l, on 31 October 2014 - 03:51 PM, said:
But it does now! I loaded 1.5.1 today and the reversed mouse buttons are not recognized in OR. Every 10 years it pops up! This is on the full stable version with installer - getting lazy in my old age.
So how do we get it fixed?
#10
Posted 04 May 2024 - 01:07 PM