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...
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...
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...
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)
{...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.