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.

Event Handler: Push and Hold

Featured Replies

Thanks Rob, I'll check that out :Big Grin:I'm wondering if when you 'push and hold' the trigger, is the 'push and hold' value always 'true' in a totally unbroken way? Or is 'true' for, say, a second, then it's false for a fraction of second after 'repeat' runs its course, then it goes back to 'true'.I'm curious because what I need is a 'clean' totally uninterrupted, even for a micro second, value for push to hold.Clear as mud?
My trigger is ... :( But more seriously: what I do is: I define a private variable as push-and-hold switch; when the event/keystroke/button (that drives this variable) changes value, my variable becomes TRUE; and stays TRUE while the event/keystroke/button changes value again within a timer, that I restart each time that event/keystroke/button changes value. With that timer being be greater than the repetition time of a keyboard keystroke or controller button, if you keep that key/button depressed.Hope we are talking about the same concept of push-and-hold here ....Cheers, Rob

Microsecond? Only way is through DirectInput message notification. Bottom line you need the delta message along with what you had (isPaused) in your original post. MS has abstracted that level of control away from the FS SDK for some reason.

  • 2 weeks later...
  • Commercial Member

In FSX you can use SimConnect function to trap user input (keyboard and joystick) before it reaches simulator, without the need of creating DirectX hooks. The function also supports push and hold feature, as it can trigger different events on button press and release.

Michael

A2A Simulations

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.