XPLMSimulateKeyPress

From X-Plane SDK
Jump to: navigation, search

XPLMSimulateKeyPress

XPLM_API void                 XPLMSimulateKeyPress(
                                   int                  inKeyType,    
                                   int                  inKey);    

This function simulates a key being pressed for x-plane. The keystroke goes directly to x-plane; it is never sent to any plug-ins. However, since this is a raw key stroke it may be mapped by the keys file or enter text into a field.

WARNING: This function will be deprecated; do not use it. Instead use XPLMCommandKeyStroke.