Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Left and Right mouse button...

Featured Replies

Hello,In one of my gauges (coded in C), I'd like to simulate a button that can be pushed or pulled. To do this, I wanted to use left mouse button to push, and right button to pull.I wrote the following C code:MOUSE_BEGIN( autopilot_mouse_rect, HELP_NONE, 0, 0 ) MOUSE_CHILD_FUNCT( 2,38,13,13, CURSOR_HAND, MOUSE_LEFTSINGLE, speed_push_cb ) MOUSE_CHILD_FUNCT( 2,38,13,13, CURSOR_HAND, MOUSE_RIGHTSINGLE, speed_pull_cb )MOUSE_ENDAnd it doesn't work. Only the second line is taken into account, the first action (left button) is ignored.How can I define 2 actions (with 2 mouse buttons) on the same button?Thanks for any help.

It is impossible. You can't use any other button then the left one (maybe the scrollwheel, but never the right one). You can however use one mouse area and check the previous state, so first action pull, second action push or something like that.Arne Bartels

Hum.... Another limitation? well, Dreamfleet provides left/ right / wheel support on a single hotspot, the latest Reality XP ATD also does (left / right / wheel on a single hotspot). It is possible and works pretty well. Here is a hint:MOUSE_CHILD_FUNCT(0,0,47,47,CURSOR_HAND, MOUSE_LEFTSINGLE | MOUSE_RIGHTSINGLE | MOUSE_DOWN_REPEAT, PFD_M_cb)You should figure out now how to work on the PFD_M_cb function to differentiate the left from the right clicks (any experience with binary operators??? it's all in the SDK, look at the mouse flags!!)As for the wheel? well, the left/right code is a good start...Hope this helps!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.