static void ai_exit(void) { if (CTX != NULL) { AIN_DeleteContext(CTX); CTX = NULL; } if (ai_port != NULL) { DeleteMsgPort(ai_port); ai_port = NULL; } }
static void close_joysticks (void) { unsigned int i = joystickCount; while (i-- > 0) { struct joystick *joy = &joystickList[i]; if (joy->handle) { AIN_ReleaseDevice (joy->context, joy->handle); joy->handle = 0; } } joystickCount = 0; AIN_DeleteContext (joystickContext); joystickContext = 0; }
static void ai_exit(void) { if (CTX != NULL) { AIN_DeleteContext(CTX); CTX = NULL; } if (ai_port != NULL) { DeleteMsgPort(ai_port); ai_port = NULL; } if (IAIN) { DropInterface((struct Interface *)IAIN); IAIN = NULL; } if (AIN_Base) { CloseLibrary(AIN_Base); AIN_Base = NULL; } amigainput_lib_loaded = 0; }