Skip to content

Instantly share code, notes, and snippets.

@Kapulara

Kapulara/file.cs Secret

Created October 28, 2015 21:36
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 Kapulara/a08f40163b20dc063b92 to your computer and use it in GitHub Desktop.
Save Kapulara/a08f40163b20dc063b92 to your computer and use it in GitHub Desktop.
public StartForm()
{
InitializeComponent();
_interceptor = new KeyboardInterceptor();
_interceptor.KeyDown += KeyDownEvent;
_interceptor.StartCapturing();
}
private void KeyDownEvent(object sender, KeyEventArgs e)
{
Console.WriteLine(e.KeyCode);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment