/* Add a command event to the internal event queue. 
This function creates a struct win_event from the command event and adds it to the internal event queue. The event data is copied, so there is no need to keep the event variable alive after calling this function. */
void win_queue_command_event(const struct win_command_event *event)
/* Add a command event to the internal event queue. 
This function creates a struct win_event from the command event and adds it to the internal event queue. The event data is copied, so there is no need to keep the event variable alive after calling this function. */
void win_queue_command_event(const struct win_command_event *event)
{
	struct win_event w_event;
	w_event.type = WIN_EVENT_COMMAND;
	w_event.command = *event;
	win_queue_event(&w_event);
}