Difference between revisions of "TestEnums"

From X-Plane SDK
Jump to: navigation, search
Line 1: Line 1:
 
{{SDK Example C 100}}
 
{{SDK Example C 100}}
 
<sample_code t="TestEnums">
 
<sample_code t="TestEnums">
// This example is missing because of problems with uploading.
+
 
// It will be uploaded when these problems have been resolved.
+
/*
 +
TestEnums Example
 +
Written by Sandy Barbour - 23/04/2004
 +
 +
This examples shows how to send key and joystick commands
 +
*/
 +
 
 +
#include "XPLMPlugin.h"
 +
#include "XPLMUtilities.h"
 +
#include "XPLMProcessing.h"
 +
#include "XPLMMenus.h"
 +
#include "XPLMGraphics.h"
 +
#include "XPLMPlanes.h"
 +
#include "XPLMDataAccess.h"
 +
#include "XPWidgets.h"
 +
#include "XPStandardWidgets.h"
 +
#include <string.h>
 +
#include <stdio.h>
 +
#include <stdlib.h>
 +
#if IBM
 +
#include <windows.h>
 +
#endif
 +
 
 +
 
 +
#define MAX_KEY_COMMANDS 95
 +
#define MAX_JOYSTICK_COMMANDS 95
 +
#define MAX_VIEW_ENUMS 21
 +
#define MAX_AP_STATES 12
 
</sample_code>
 
</sample_code>

Revision as of 14:24, 26 December 2012




/*
	TestEnums Example
	Written by Sandy Barbour - 23/04/2004
	
	This examples shows how to send key and joystick commands
*/

#include "XPLMPlugin.h"
#include "XPLMUtilities.h"
#include "XPLMProcessing.h"
#include "XPLMMenus.h"
#include "XPLMGraphics.h"
#include "XPLMPlanes.h"
#include "XPLMDataAccess.h"
#include "XPWidgets.h"
#include "XPStandardWidgets.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#if IBM
#include <windows.h>
#endif


#define MAX_KEY_COMMANDS 95
#define MAX_JOYSTICK_COMMANDS 95
#define MAX_VIEW_ENUMS 21
#define MAX_AP_STATES 12