
Mouse & me again
Posted Thursday, 27 March, 2008 - 21:22 by teichgraf inThe Mouse.WheelDelta will never be zero if the wheel was used ones. After that the value is 1 or -1. I think the WheelDelta should be reseted when the mouse wheel isn't used, so it's value is 0, instead of 1 or -1.
And how can I test if no mouse button is pressed? I am searching for something like Mouse[MouseButton.None] or !Mouse.Pressed. At the moment I need to test if every button is not pressed: !Mouse[MouseButton.Left] && !Mouse[MouseButton.Right] .... Or Am I missing something?


Comments
Re: Mouse & me again
The Mouse.*Delta functions do not work correctly right now, but I'm working on a fix.
Can't you just assume that no button is pressed by default?
Or is there a use case that's not covered by this?
Re: Mouse & me again
Thanks for the reply.
The code you posted above would surely work, but one needs an extra
button_pressedvariable.Actually I need this functionality for
Keyboard. I am doing something like this inUpdateFrame:And In the
MouseButtonUp:So when I press the left mouse button and hold
Key.CtrlLeft,Func2()andFunc1()are called. But I just wantFunc2()to be executed.A way to achieve this, would be a modified
UpdateFrame:But in my opinion it is more elegant to write something like this in
UpdateFrame:Re: Mouse & me again
Edit: Nevermind, didn't read the problem correctly.