Wings 0.70 patch

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Wings 0.70 patch

Vlad Dumitrescu-3
Hi,

I've played a little with Wings, and it's great!

Since my 3 button mouse seems not to be recognized as such, I found a small bug in using Alt-Button1 to emulate Button3... Here comes the patch in wings.erl

1009,1010c1009,1015
< translate_event(#mousebutton{button=1,x=X,y=Y,state=?SDL_PRESSED}, St) ->
<     ignore;
---
> translate_event(#mousebutton{button=1,x=X,y=Y,state=?SDL_PRESSED}=Mb, St) ->
>     case sdl_keyboard:getModState() of
>  Mod when Mod band ?ALT_BITS =/= 0 ->
>      translate_event(Mb#mousebutton{button=2}, St);
>  _ ->
>          ignore
>     end;

Have a nice day,
Vlad


Reply | Threaded
Open this post in threaded view
|

Wings 0.70 patch

Björn Gustavsson-3
Thanks for the patch. It will be included in next release of Wings,
which probably will appear within a few days.

BTW, there is now a version 0.71 at the Wings page, which fixes
a few minor bugs, such as the infamous "demo bug" shown at the
Erlang conference.

/Bjorn

"Vlad Dumitrescu" <vladdu> writes:

> Hi,
>
> I've played a little with Wings, and it's great!
>
> Since my 3 button mouse seems not to be recognized as such, I found a small bug in using Alt-Button1 to emulate Button3... Here comes the patch in wings.erl
>
> 1009,1010c1009,1015
> < translate_event(#mousebutton{button=1,x=X,y=Y,state=?SDL_PRESSED}, St) ->
> <     ignore;
> ---
> > translate_event(#mousebutton{button=1,x=X,y=Y,state=?SDL_PRESSED}=Mb, St) ->
> >     case sdl_keyboard:getModState() of
> >  Mod when Mod band ?ALT_BITS =/= 0 ->
> >      translate_event(Mb#mousebutton{button=2}, St);
> >  _ ->
> >          ignore
> >     end;
>
> Have a nice day,
> Vlad
>

--
Bj?rn Gustavsson            Ericsson Utvecklings AB
bjorn      ?T2/UAB/F/P
                            BOX 1505
+46 8 727 56 87    125 25 ?lvsj?