SIMPHYNITY Game Plugin
Example game plugin DLL for SIMPHYNITY
 All Classes Files Functions Enumerations Pages
dllmain.h
Go to the documentation of this file.
1 
31 #define DLL_EXPORT
32 
33 #if defined DLL_EXPORT
34  #define DECLDIR __declspec(dllexport)
35 #else
36  #define DECLDIR __declspec(dllimport)
37 #endif
38 
61 {
62  DISPLAY_SPEED_UNITS_KPH = 0,
63  DISPLAY_SPEED_UNITS_MPH,
64  DISPLAY_SPEED_UNITS_KNOTS,
65  DISPLAY_SPEED_UNITS_MS
66 };
67 
113 {
114  float maxGs;
115  float maxSpeed;
116  DISPLAY_SPEED_UNITS displaySpeedUnits;
117  bool learnSpeed;
118  int accelScalar;
119 };
120 
159 {
160  // OGL
161  RENDER_FUNCTION_GDI_SWAPBUFFERS = 0, // OGL default.
162  RENDER_FUNCTION_OGL_WGLSWAPBUFFERS,
163  RENDER_FUNCTION_OGL_FINISH,
164  RENDER_FUNCTION_OGL_FLUSH,
165 
166  // DX8 / DX9
167  RENDER_FUNCTION_D3D_PRESENT = 0, // DX8 / DX9 default.
168  RENDER_FUNCTION_D3D_ENDSCENE,
169  RENDER_FUNCTION_D3DSC_PRESENT,
170 
171  // DX10 / DX11
172  RENDER_FUNCTION_DXGI_PRESENT = 0 // DX10 DEFAULT.
173 };
174 
193 {
194  KEYBOARD_HOOK_METHOD_WNDPROC = 0,
195  KEYBOARD_HOOK_METHOD_SETWINDOWSHOOKEX,
196  KEYBOARD_HOOK_METHOD_GETASYNCKEYSTATE
197 };
198 
248 {
249  bool enabled;
250  GFX_RENDER_FUNCTION gfxRenderFunction;
251  KEYBOARD_HOOK_METHOD kbHookingMethod;
252  bool invertZPlane;
253  bool forceScreenRefresh;
254 };
255 
311 {
312  bool useLocalVals;
313  float localAccel[3];
314  float localVel[3];
315  float globalVel[3];
316  float rotationMatrix[3][3];
317  DWORD packetTimeMillis;
318 };
319 
320 
325 BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved);
326 
327 extern "C"
328 {
329  /************************************* DEFAULT GAME SETTINGS **************************************/
330 
338  DECLDIR void GetDefaultSettings(const GAME_SETTINGS* settings);
339 
340 
341  /******************************************** PROCESS INFO ********************************************/
342 
352  DECLDIR int GetNumExeNames();
353 
362  DECLDIR void GetExeName(int index, const TCHAR* exeName);
363 
388  DECLDIR int GetNumParentDirs();
389 
398  DECLDIR void GetParentDir(int index, const TCHAR* dir);
399 
400 
401  /********************************* SIMPHYNITY REMOTE SETTINGS **********************************/
402 
410  DECLDIR void GetSimphyintyRemoteSettings(const REMOTE_CONFIG* settings);
411 
412 
413  /******************************************** EVENTS ********************************************/
414 
419  DECLDIR void OnGameDetected();
420 
425  DECLDIR void OnGameLost();
426 
435  DECLDIR void GetTelemetryData(const TELEMETRY_DATA* telem);
436 }
437