Skip to content

Instantly share code, notes, and snippets.

Created March 30, 2017 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c4286979ded2d927b40a71fdd75038df to your computer and use it in GitHub Desktop.
Save anonymous/c4286979ded2d927b40a71fdd75038df to your computer and use it in GitHub Desktop.
Some Sample Code
/**
* Callback executed when a program opens a connection to a controller.
*/
static int pad_open(struct input_dev* dev)
{
// Start timer for polling controller state
mod_timer(&nes_timer, jiffies + SAMPLE_INTERVAL);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment