Search results

  1. A

    Hardware Guys, Joystick ..??

    I wrote my own plugin for joystick control. Features include: - can toggle stick between RCS control and aerodynamic control - can toggle throttle between main thrusters and hover thrusters - buttons and hat control work as I want them to Not sure how much interest there would be in the...
  2. A

    Advanced Question InitModule deadlock

    This is just a minimal example to recreate the problem. What I was actually doing was calling SDL_Init from the SDL library, which has its own reasons for creating a thread and uses proper synchronisation techniques. My point is: deadlock is expected if you create a thread in a DLL entry point...
  3. A

    API Question Why shouldn't you delete an oapi::Module?

    I'm a bit perplexed by the following note in the API documentation for oapiRegisterModule: "The DLL should not delete the module instance in ExitModule. Orbiter destroys all registered modules automatically when required." 1. How can Orbiter destroy the module instance, with no knowledge of...
  4. A

    Advanced Question InitModule deadlock

    The following module, in the InitModule implementation, creates a thread and then waits for it to begin execution. This deadlocks when Orbiter tries to load it. int g_thread = 0; DWORD WINAPI ThreadBody(LPVOID lpParam) { g_thread = 1; return 0; } DLLCLBK void InitModule(HINSTANCE hDLL) {...
Top