Created
March 30, 2017 20:41
-
-
Save anonymous/c4286979ded2d927b40a71fdd75038df to your computer and use it in GitHub Desktop.
Some Sample Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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