Esempio n. 1
0
static void
key_uninit (void)
{
	int i;
	free_key_pool (pool);
	for (i = 0; i < num_sdl_keys; i++)
		bindings[i] = NULL;
	HFree (bindings);
	bindings = NULL;
	pool = NULL;

#ifdef HAVE_JOYSTICK
	for (i = 0; i < joycount; i++)
		destroy_joystick (i);
	HFree (joysticks);
#endif /* HAVE_JOYSTICK */
}
Esempio n. 2
0
// Closes the file descripotr to the arduino.
void destroy_arduino(rov_arduino *a){
    pthread_cancel(a->qt);
    close(a->fd);
    destroy_joystick(&a->joystick);
}