There is an error in the X-Plane command system.
For maximum clarity I'll state it several different ways.
STATEMENT 1
-----------
No matter how quickly one presses and releases a key/button, the command always receives at least one xplm_CommandContinue event. It's very difficult to get just one. A typical key/button press-and-release generates two or three xplm_CommandContinue events. I have a (Windows) test plugin that demonstrates this.
STATEMENT 2
-----------
Any command which executes upon receipt of xplm_CommandContinue will typically execute at least two or three times. It's very difficult to get it to execute just once.
STATEMENT 3
-----------
Any command which is repeat-enabled typically executes at least two or three times.
STATEMENT 4
-----------
Repeating keys typically behave as if the keyboard has autorepeat with zero delay before repeat starts.
END OF ALTERNATE STATEMENTS
CONSEQUENCE OF ERROR
--------------------
It is very difficult to get fine key/button control of many functions, including but not limited to setting {throttle, props, mixture}, rotating views with arrow keys, etc.
This behavior began in version 8.60.
PROPOSED SOLUTION
-----------------
Implement an autorepeat timer (approx 0.25 to 0.5 sec). Start the timer on xplm_CommandBegin. Do not deliver xplm_CommandContinue events to commands until the timer has timed out.
NOTE
----
I first reported this issue in a bug report with subject something like "Keyboard autorepeat with zero delay" during the 8.60 beta cycle. I never got a response.
- Laminar ResearchX-Plane Author
- Andy's X-Plane FAQX-Plane FAQ
- GoodWay Flight PlannerFlight Planning Plugin
- Robin Peel's Nav AidsRobin Peel's Nav Aids Site
- X-Plane FreewareX-Plane Freeware Project
- X-Plane - ItaliaX-Plane Italy
- X-Plane - DeutscheGerman X-Plane Forums
- X-Plane - FranceFrench X-Plane Site
- X-Plane - SpainSpanish X-Plane Site
- XP JetsX-Plane Jets
- Ben's Scenery BlogBen's Scenery Blog
- X-Plane & Garmin TrainerX-Plane and Fully-Featured GPS

Sign In »
Register Now!
Help
Forum Portal
Forums - Home
Members
Blogs
Calendar
Org Chat
Contact Us















