Modules-old/xbox/lua_xbox360.cpp
/* Clean up the Thread when done */
Clean up the Thread when done
Clean up the Thread when done
int xbox360_thread_cleanup() {
  if (init) {
    init = 0;
    libusb_release_interface(devh, 0);
    libusb_close(devh);
    libusb_exit(NULL);
    free(buttons);
    free(axes);
    free(tbutton);
    free(taxis);
  }
  return 0;
}
int xbox360_thread_cleanup ( ) { if ( init ) { init = 0 ; libusb_release_interface ( devh , 0 ) ; libusb_close ( devh ) ; libusb_exit ( NULL ) ; free ( buttons ) ; free ( axes ) ; free ( tbutton ) ; free ( taxis ) ; } return 0 ; }
Clean up the Thread when done
Clean up the Thread when done
// set initialized to false // free arrays