![]() |
Right mouse button event | ![]() |
![]() |
![]() |
Jcw87
![]() |
![]() |
Alot of things regarding the mouse are broken in the newest revision, including right and middle mouse buttons, mouse wheel, and the mouse focus window flag. I just use revision 4464, since it's the one right before a major change in mouse functionality, and it works for me.
|
||||||||||
|
![]() |
![]() |
hardcoder
![]() |
![]() |
Many thanks on revision info, problem is that older revisions do not create window properly. On some machines window can't be created at all with SetProp() error and full screen can't be set on any. Still, it is strategy game and without right mouse button and scroll I am totally blocked. Thanks again. |
||||||||||||
|
![]() |
Right mouse button event | ![]() |
Jjgod Jiang
Guest
![]() |
![]() |
On Fri, Aug 13, 2010 at 11:11 AM, hardcoder wrote:
I am also curious about such major change, is there any official word about this? - Jiang _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||||
|
![]() |
![]() |
zaphod
![]() |
![]() |
I'm using 4633, mouse buttons and wheel work for me. |
||||||||||||
|
![]() |
![]() |
Jcw87
![]() |
![]() |
The only mouse events I'm getting in that revision are mouse motion and left button. What platform are you using? I'm using Windows. |
||||||||||||||
|
![]() |
![]() |
Jcw87
![]() |
![]() |
I decided to take a look at what was wrong, and sure enough, it looks like a Windows only issue. When multi-mouse support was removed, the mouse event handlers were replaced with the ones being used for WinCE, which only had events for mouse motion and left button. I made a patch that adds handlers for middle and right buttons, mouse wheel, and x buttons.
I have no idea if the mouse wheel and x button stuff is "correct," I just used what I observed from earlier revisions. |
||||||||||||
|
![]() |
Right mouse button event | ![]() |
Martin Voigt
Guest
![]() |
![]() |
I'm using linux and windows. I just did a quick windows build and yes, on windows(32) only the left button works, on linux all of them. After a quick look at the source, it seems to me that the respective event handlers are simply missing, the patch brought them back. Or maybe this was on purpose, to give the windows users the old school apple-feeling (only one mouse button and all that)
![]() bw, Martin |
||||||||||
|
![]() |
![]() |
hardcoder
![]() |
![]() |
Could this patch be pushed to repo?
|
||||||||||||||
|