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
import Tkinter as tkinter | |
tk = tkinter.Tk() | |
has_prev_key_release = None | |
''' | |
When holding a key down, multiple key press and key release events are fired in | |
succession. Debouncing is implemented in order to squash these repeated events | |
and know when the "real" KeyRelease and KeyPress events happen. |
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
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <linux/input.h> | |
#include <fcntl.h> | |
#include <stdarg.h> | |
#include <stdint.h> |