New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stabilize view when the user is clicking on buttons #2
Comments
I think it might work very well if the plugin gradually pauses the shaking while the mouse pointer is hovering a "click zone" (or "manipulator" as I think LR call it). Once is out of the manipulator, the shaking can resume. |
Danita, do you know if it is possible to detect the hover on a manipulator? In the plugin SDK, the only API i may find useful is XPLMCursorStatus. |
Not really, I'm just guessing. I'm a programmer and I'd love to collaborate on the project because I use this wonderful Headshake since my first day on X-Plane, but sadly I don't know C++ nor have studied the SDK! |
I don't think there's a way to detect the existing cursor status, only to assign a new one. So this becomes a difficult item to solve because a perfect solution involves a) hit testing, b) interacting with obj elements drawn by x-plane, and c) using 3d cockpit coordinates in a cockpit draw mode. None of these are accommodated by the SDK! In order of difficulty, here are some ideas
Other than these, the original suggestions by the OP are probably best. Others with more exposure to the SDK may as well have some hacks. |
I do not have access to a PC at the time of writing this comment so it is difficult for me to confirm any of this but can the http://www.xsquawkbox.net/xpsdk/mediawiki/XPLMMouseStatus potentially be of any use in this case? |
There may be more info on here also : http://www.xsquawkbox.net/xpsdk/mediawiki/XPLMDisplay |
When the mouse is down yes...but there's no way to know when the cursor is
over a manipulator without additional work.
…On Feb 25, 2017 5:37 PM, "Craig Hupin" ***@***.***> wrote:
There may be more info on here also : http://www.xsquawkbox.net/
xpsdk/mediawiki/XPLMDisplay
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADBwxTw_w5tHkpUu7PEK_LIjaNfFtXCvks5rgNdkgaJpZM4MFg6J>
.
|
@wolfsnipes your suggestions are good ad may work but are too complex and possibly require too much computation. By the way, you gave another idea. What if we analyze the mouse gestures? |
Clicking on a button using the mouse in the 3D cockpit while flying in bumpy weather or when the engine vibrations are active is difficult. This is because the button moves under the mouse pointer.
This may be solved by reducing the movements triggered by HeadShake when the view gets closer to the cockpit. Also, a custom command that stops the movements when the user activates it may work as well.
Other solutions are accepted.
The text was updated successfully, but these errors were encountered: