mikeprass / sasl

Automatically exported from code.google.com/p/sasl
0 stars 0 forks source link

Mouse Whell for instruments #29

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
возможно ли сделать, чтобы при 
прокручивании колесика мышки, если курсор
над прибором, эмулировались щелчки по 
прибору (как в msfs) 

Original issue reported on code.google.com by nbdar...@gmail.com on 16 Jun 2009 at 6:53

GoogleCodeExporter commented 8 years ago
Translation to English of text above:  Is it possible to allow mouse wheel to 
rotate
rotaries like in MSFS?

Probably will be implemented in next version.

Original comment by a.a.babichev on 17 Jun 2009 at 4:41

GoogleCodeExporter commented 8 years ago
По идее в SDL mousewheel это эвент onClick с индексом 
кнопки 4 и 5, так что уже сейчас можно 
попробовать сделать rotary который правильно 
на это реагирует

Original comment by m...@julik.nl on 19 Jun 2009 at 4:15

GoogleCodeExporter commented 8 years ago
Да, в x-plane немного сложнее но то же возможно.

Original comment by a.a.babichev on 19 Jun 2009 at 5:23

GoogleCodeExporter commented 8 years ago
когда сделаете, мне скажите, я у себя так же 
сделаю

Original comment by nbdar...@gmail.com on 19 Jun 2009 at 6:45

GoogleCodeExporter commented 8 years ago
Bump: http://www.xsquawkbox.net/xpsdk/mediawiki/XPLMHandleMouseWheel_f

XPLMHandleMouseWheel_f
typedef int (* XPLMHandleMouseWheel_f)(
                                   XPLMWindowID         inWindowID,    
                                   int                  x,    
                                   int                  y,    
                                   int                  wheel,    
                                   int                  clicks,    
                                   void *               inRefcon);    
The SDK calls your mouse wheel callback when one of the mouse wheels is turned 
within your window. Return 1 to consume the mouse wheel clicks or 0 to pass 
them on to a lower window. (You should consume mouse wheel clicks even if they 
do nothing if your window appears opaque to the user.) The number of clicks 
indicates how far the wheel was turned since the last callback. The wheel is 0 
for the vertical axis or 1 for the horizontal axis (for OS/mouse combinations 
that support this).

Original comment by vonh...@gmail.com on 13 Sep 2011 at 9:08