I asedthi question areay, but I accidentally wrote in linux rather than in C.

How would you write a C program to read data from a joystick, and turn that data into a command that is pushed onto the queue?

How do you add a string the queue?