Skip to content

Instantly share code, notes, and snippets.

@errzey
Created July 4, 2010 05:35
Show Gist options
  • Save errzey/463176 to your computer and use it in GitHub Desktop.
Save errzey/463176 to your computer and use it in GitHub Desktop.
struct input_event input_event;
ssize_t bytes_read;
char key;
bytes_read = read(fd, &input_event, sizeof(struct input_event));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment